Skip to content

Commit

Permalink
Type _classproperty
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Nov 28, 2024
1 parent d03f90b commit f8f66b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pymbolic/primitives.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,8 @@ def disable_subscript_by_getitem():

# https://stackoverflow.com/a/13624858
class _classproperty(property): # noqa: N801
def __get__(self, owner_self, owner_cls):
def __get__(self, owner_self: Any, owner_cls: type | None = None) -> Any:
assert self.fget is not None
return self.fget(owner_cls)


Expand Down

0 comments on commit f8f66b5

Please sign in to comment.