Skip to content

Commit

Permalink
fix: validate class constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravencentric committed Apr 23, 2024
1 parent 52963f1 commit ee877f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/pyanilist/_clients/_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@


class AsyncAniList:
@validate_call
def __init__(
self, api_url: str = "https://graphql.anilist.co", retries: PositiveInt = 5, **kwargs: HTTPXAsyncClientKwargs
) -> None:
Expand Down
1 change: 1 addition & 0 deletions src/pyanilist/_clients/_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@


class AniList:
@validate_call
def __init__(
self, api_url: str = "https://graphql.anilist.co", retries: PositiveInt = 5, **kwargs: HTTPXClientKwargs
) -> None:
Expand Down

0 comments on commit ee877f2

Please sign in to comment.