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
We should emit a diagnostic when we see conflicting declared types of attributes, either between the declaration in the class body and declarations in a method, or between annotated assignments in different methods. We have existing tests for this scenario (see TODO comments):
sharkdp
changed the title
Emit a diagnostic when we see conflicting declared types between class body and __init__ (see TODO in own_instance_member)
[red-knot] Diagnostic for conflicting declared attribute types
Feb 5, 2025
We should emit a diagnostic when we see conflicting declared types of attributes, either between the declaration in the class body and declarations in a method, or between annotated assignments in different methods. We have existing tests for this scenario (see
TODO
comments):ruff/crates/red_knot_python_semantic/resources/mdtest/attributes.md
Lines 212 to 226 in eb08345
part of: #14164
The text was updated successfully, but these errors were encountered: