Revert "Add all PEP-585 names to UP006 rule" (#15250)

This commit is contained in:
Micha Reiser 2025-01-04 12:23:53 +01:00 committed by GitHub
parent baf0d660eb
commit e4d9fe036a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 19 additions and 649 deletions

View file

@ -64,22 +64,3 @@ def f(x: typing.Deque[str]) -> None:
def f(x: typing.DefaultDict[str, str]) -> None:
...
def f(x: typing.AbstractSet[str]) -> None:
...
def f(x: typing.Pattern[str]) -> None:
...
def f(x: typing.Sequence[str]) -> None:
...
from typing import Collection
def f(x: typing.Collection[str]) -> None:
...

View file

@ -8,19 +8,3 @@ if typing.TYPE_CHECKING:
def f(x: typing.DefaultDict[str, str]) -> None:
...
from collections.abc import Set
from typing_extensions import Awaitable
def f(x: typing.AbstractSet[str]) -> None:
...
def f(x: Set) -> None:
...
def f(x: Awaitable) -> None:
...