Type-Hint some files that were not type-hinted #101
@ -170,7 +170,7 @@ class CachedSlotProperty(Generic[T, T_co]):
|
||||
|
||||
class classproperty(Generic[T_co]):
|
||||
def __init__(self, fget: Callable[[Any], T_co]) -> None:
|
||||
self.fget = fget
|
||||
self.fget: Callable[[Any], T_co] = fget
|
||||
|
||||
def __get__(self, instance: Optional[Any], owner: Type[Any]) -> T_co:
|
||||
return self.fget(owner)
|
||||
|
Loading…
x
Reference in New Issue
Block a user