Closed as not planned
Description
class Foo:
@classmethod
@property
def bar(cls) -> str:
return cls.__name__
def foo_bar(msg: str) -> None:
print(msg)
foo_bar(Foo.bar)
mypy --python-version 3.9 test.py
test.py:11: error: Argument 1 to "foo_bar" has incompatible type "Callable[[], str]"; expected "str"
Found 1 error in 1 file (checked 1 source file)
As stated in https://docs.python.org/3.9/library/functions.html#classmethod this new classmethod property is completely valid so mypy shouldn't report an error.