Skip to content

Commit

Permalink
typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RootShinobi committed Dec 31, 2023
1 parent 9e20948 commit 7502782
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aiogram_i18n/utils/context_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ def get_current( # noqa: F811
return current

@classmethod
def set_current(cls, value: ContextInstance) -> Token: # Token[ContextInstance]
def set_current(cls, value: ContextInstance) -> Token[ContextInstance]:
if not isinstance(value, cls):
raise TypeError(
f"Value should be instance of {cls.__name__!r} not {type(value).__name__!r}"
)
return cls.__context_instance.set(value)

@classmethod
def reset_current(cls, token: Token) -> None: # Token[ContextInstance]
def reset_current(cls, token: Token[ContextInstance]) -> None:
cls.__context_instance.reset(token)

@classmethod
Expand Down

0 comments on commit 7502782

Please sign in to comment.