Skip to content

Commit 4806400

Browse files
committed
chore: remove unused typing
1 parent 2528238 commit 4806400

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

swanlab/api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,4 +199,4 @@ def runs(self, path: str, filters: Optional[dict] = None) -> ApiResponseType:
199199
)
200200

201201

202-
__all__ = ["Api"]
202+
__all__ = ["Api"]

swanlab/api/typings/common.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929
ApiLicensePlanEnum = Literal["free", "commercial"]
3030

3131

32-
33-
3432
class ApiPaginationType(TypedDict):
3533
list: List
3634
size: int
@@ -79,4 +77,4 @@ def __repr__(self) -> str:
7977
return f"ApiResponse(ok=False, errmsg={self.errmsg!r})"
8078

8179

82-
__all__ = ["ApiLabelType", "ApiPaginationType", "ApiResponseType"]
80+
__all__ = ["ApiPaginationType", "ApiResponseType"]

swanlab/api/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def to_camel_case(name: str) -> str:
3939
return "".join([w.capitalize() if i > 0 else w for i, w in enumerate(name.split("_"))])
4040

4141

42-
#TODO: 私有化接口装饰器
42+
# TODO: 私有化接口装饰器
4343
# def with_self_hosted(identity: ApiIdentityEnum = "user"):
4444
# """
4545
# 用于需要在私有化环境下使用的接口的装饰器。

0 commit comments

Comments
 (0)