Skip to content

Standard collection typing is 3.9+ #9819

Open
@nickdrozd

Description

@nickdrozd

Current problem

list[int], dict[str, int], etc syntax was introduced in Python 3.9.

Desired solution

Unless py-version is 3.9+ (or 3.7 with from __future__ import annotations), flag it.

Additional context

https://peps.python.org/pep-0585/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Enhancement ✨Improvement to a componentNeeds PRThis issue is accepted, sufficiently specified and now needs an implementationpy-versionpython 3.9typing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions