-
Notifications
You must be signed in to change notification settings - Fork 216
Closed
astral-sh/ruff
#20995Labels
attribute accessInstance attributes, class attributes, etc.Instance attributes, class attributes, etc.bugSomething isn't workingSomething isn't workingruntime semanticsAccurate modeling of how Python's semantics work at runtimeAccurate modeling of how Python's semantics work at runtime
Description
Summary
reveal_type(print.__mro__) # revealed: tuple[<class 'FunctionType'>, <class 'object'>]
reveal_type(object().__mro__) # revealed: tuple[<class 'object'>]^Both those attribute accesses fail at runtime, but ty doesn't emit any diagnostics here.
Version
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
attribute accessInstance attributes, class attributes, etc.Instance attributes, class attributes, etc.bugSomething isn't workingSomething isn't workingruntime semanticsAccurate modeling of how Python's semantics work at runtimeAccurate modeling of how Python's semantics work at runtime