Skip to content

Update UP035 for Python 3.13 #11413

@AlexWaygood

Description

@AlexWaygood

We should update UP035 to emit a diagnostic if --target-version=py313 has been selected and a user imports typing.TypeIs, warnings.deprecated, typing.ReadOnly, typing.NoDefault typing.get_protocol_members or typing.is_protocol from typing_extensions rather than typing

Originally posted by @AlexWaygood in #11411 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    python313Related to Python 3.13ruleImplementing or modifying a lint rule

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions