From 9ac838be601f303ba5ab78a8b42fb95af54c9599 Mon Sep 17 00:00:00 2001 From: NewSoupVi <57900059+NewSoupVi@users.noreply.github.com> Date: Mon, 25 Nov 2024 19:20:20 +0100 Subject: [PATCH] Typing??? --- Options.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Options.py b/Options.py index 40e347504290..20f1ecd738d6 100644 --- a/Options.py +++ b/Options.py @@ -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