Skip to content

Commit

Permalink
Typing???
Browse files Browse the repository at this point in the history
  • Loading branch information
NewSoupVi committed Nov 25, 2024
1 parent e0e48b1 commit 9ac838b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Options.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,12 @@ def verify(self, *args, **kwargs) -> None:
class SaveInitialValueMixin:
initial_value: typing.Any

def __init_subclass__(cls: type(Option), **kwargs):
def __init_subclass__(cls: typing.Type[Option], **kwargs) -> None:
super().__init_subclass__(**kwargs)

original_from_any = cls.from_any

def from_any_wrapped(_, data: typing.Any):
def from_any_wrapped(_, data: typing.Any) -> Option:
ret = original_from_any(data)
ret.initial_value = data
return ret
Expand Down

0 comments on commit 9ac838b

Please sign in to comment.