Skip to content

Rules pertaining to PEP 695 #12542

@Goldziher

Description

@Goldziher

MyPy released support for PEP 695 generics: python/mypy#15238

It would be awesome to do any of the following:

  1. get linting errors for code that uses older style generics (TypeVar, ParamSpec etc.) for Python 3.12+
  2. get linting errors for code that uses newer style generics and should be backward compatible with lower Python versions
  3. automagically upgrade older style generics to use the new syntax

I see that for point 3 there is an open related issue. This issue is about the underlying rust implementation for point 3, but does not cover points 1 and 2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ruleImplementing 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