Skip to content

Commit

Permalink
refactor: simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ljzd-PRO committed Nov 8, 2023
1 parent 2340c6d commit 480940a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ktoolbox/api/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,8 @@ class BaseAPI(ABC, Generic[_T]):
method: Literal["get", "post"]
extra_validator: Optional[Callable[[str], BaseModel]] = None

class Response(BaseModel):
"""
API response model
"""
...
Response = BaseModel
"""API response model"""

@classmethod
def handle_res(cls, res: httpx.Response) -> APIRet[_T]:
Expand Down

0 comments on commit 480940a

Please sign in to comment.