Open
Description
Describe the Bug
from typing import reveal_type
class Foo:
x: str
@classmethod
def f(cls) -> None:
reveal_type(cls.x) # E: Instance-only attribute `x` of class `Foo` is not visible on the class
Both Mypy and Pyright think this should be a str
, not an error.
Sandbox Link
(Only applicable for extension issues) IDE Information
No response