Open
Description
Describe the Bug
class Foo:
@classmethod
def method(cls, x: str) -> None:
...
def g(self):
type(self).method("tst") # E: Object of class `type` has no attribute `method`
This gives an error in Pyrefly, but works with mypy and Pyright.
Sandbox Link
(Only applicable for extension issues) IDE Information
No response