Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
AttackingOrDefending authored May 4, 2024
1 parent 19c87c4 commit 90ba0f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

class PerfType(TypedDict):
"""Type hint for `perf`."""

games: NotRequired[int]
rating: NotRequired[int]
rd: NotRequired[int]
Expand All @@ -18,6 +19,7 @@ class PerfType(TypedDict):

class ProfileType(TypedDict):
"""Type hint for `profile`."""

country: NotRequired[str]
location: NotRequired[str]
bio: NotRequired[str]
Expand All @@ -33,6 +35,7 @@ class ProfileType(TypedDict):

class UserProfileType(TypedDict):
"""Type hint for `user_profile`."""

id: str
username: str
perfs: NotRequired[dict[str, PerfType]]
Expand All @@ -55,6 +58,7 @@ class UserProfileType(TypedDict):

class ReadableType(TypedDict):
"""Type hint for `readable`."""

Evaluation: Callable[[PovScore], str]
Winrate: Callable[[PovWdl], str]
Hashfull: Callable[[int], str]
Expand Down

0 comments on commit 90ba0f4

Please sign in to comment.