-
Notifications
You must be signed in to change notification settings - Fork 216
Open
Labels
attribute accessInstance attributes, class attributes, etc.Instance attributes, class attributes, etc.help wantedContributions especially welcomeContributions especially welcometyping semanticstyping-module features, spec compliance, etctyping-module features, spec compliance, etc
Milestone
Description
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):
part of: astral-sh/ruff#14164
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
attribute accessInstance attributes, class attributes, etc.Instance attributes, class attributes, etc.help wantedContributions especially welcomeContributions especially welcometyping semanticstyping-module features, spec compliance, etctyping-module features, spec compliance, etc