Skip to content

Commit

Permalink
Increase type completeness
Browse files Browse the repository at this point in the history
  • Loading branch information
harshil21 committed May 19, 2024
1 parent 2a8422c commit a7ab3d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion telegram/_chatfullinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,6 @@ def __init__(

# Required and unique to this class-
with self._unfrozen():
self.max_reaction_count = max_reaction_count
self.max_reaction_count: int = max_reaction_count

self._freeze()
4 changes: 2 additions & 2 deletions telegram/warnings.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ class PTBDeprecationWarning(PTBUserWarning, DeprecationWarning):
__slots__ = ("message", "version")

def __init__(self, version: str, message: str) -> None:
self.version = version
self.message = message
self.version: str = version
self.message: str = message

def __str__(self) -> str:
return f"Deprecated since version {self.version}: {self.message}"

0 comments on commit a7ab3d7

Please sign in to comment.