You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar to how we support implicit instance attributes, we should also support implicitly defined class attributes. More concretely, we want the TODO comment here to be resolved, i.e. there should be no unresolved-attribute diagnostic:
sharkdp
changed the title
Support implicit class attributes (only defined in a @classmethod)
[red-knot] Support implicit class attributes (only defined in a @classmethod)
Feb 5, 2025
Similar to how we support implicit instance attributes, we should also support implicitly defined class attributes. More concretely, we want the
TODO
comment here to be resolved, i.e. there should be nounresolved-attribute
diagnostic:ruff/crates/red_knot_python_semantic/resources/mdtest/attributes.md
Lines 503 to 514 in eb08345
The implementation for this can probably re-use most of the machinery introduced in this PR. In particular, the
Type::implicit_instance_attribute
method.The text was updated successfully, but these errors were encountered: