-
Notifications
You must be signed in to change notification settings - Fork 283
Closed
Labels
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 classBoth Mypy and Pyright think this should be a str, not an error.
Sandbox Link
(Only applicable for extension issues) IDE Information
No response
Reactions are currently unavailable