-
Notifications
You must be signed in to change notification settings - Fork 138
Closed
Labels
typing semanticstyping-module features, spec compliance, etctyping-module features, spec compliance, etc
Milestone
Description
Doc: https://docs.python.org/3/library/typing.html#typing.Final
Spec: https://typing.python.org/en/latest/spec/qualifiers.html#uppercase-final
- Infer the type of the RHS for public uses of bare
Finalsymbols - Add a new diagnostic for modifications of
Final-qualified symbols - Make sure that both of the above also works for attributes
- Disallow
Finalin function parameter definitions / return-type annotations - Prevent overriding of
Finalattributes in subclasses - Report an error if there is no binding to a
Final-qualified symbol - Variance inference: if an attribute is marked
Final, its type should be covariant rather than invariant
Metadata
Metadata
Assignees
Labels
typing semanticstyping-module features, spec compliance, etctyping-module features, spec compliance, etc