fix(classproperty): require fget, remove unsafe default
This commit is contained in:
parent
072a0d7c0a
commit
c1e841fea9
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ class ClassProperty[T]:
|
|||
|
||||
|
||||
def classproperty[T](
|
||||
fget: Callable[[Any], T] = empty.func,
|
||||
fget: Callable[[Any], T],
|
||||
fset: Callable[[Any, T], None] = empty.func,
|
||||
fdel: Callable[[Any], None] = empty.func,
|
||||
) -> ClassProperty[T]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue