-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
ruleImplementing or modifying a lint ruleImplementing or modifying a lint rule
Description
Ruff catches all of these as UP035 violations:
from typing import (
Container,
Callable,
AsyncIterable,
Mapping,
Coroutine,
OrderedDict,
)However, none of these trigger that rule:
import typing
a: typing.Container
b: typing.Callable
c: typing.AsyncIterable
d: typing.Mapping
e: typing.Coroutine
f: typing.OrderedDictThis isn't something supported by pyupgrade (as the autofix would be quite complicated), but it seems like it would be worth a warning. flake8-pep585 catches these.
Note that the names I listed are just examples, there are probably more pep 585 names with the same issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
ruleImplementing or modifying a lint ruleImplementing or modifying a lint rule