mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-21 19:32:13 +08:00
Update typing_extensions imports in third-party stubs (#11245)
This commit is contained in:
@@ -8,8 +8,7 @@ from _typeshed import (
|
||||
Unused,
|
||||
)
|
||||
from re import Pattern
|
||||
from typing import Any, ClassVar
|
||||
from typing_extensions import Literal
|
||||
from typing import Any, ClassVar, Literal
|
||||
|
||||
from docutils import TransformSpec
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@ import xml.dom.minidom
|
||||
from _typeshed import Incomplete
|
||||
from abc import abstractmethod
|
||||
from collections.abc import Callable, Generator, Iterable, Iterator, Sequence
|
||||
from typing import Any, ClassVar, Protocol, TypeVar, overload
|
||||
from typing_extensions import Literal, Self, SupportsIndex
|
||||
from typing import Any, ClassVar, Literal, Protocol, SupportsIndex, TypeVar, overload
|
||||
from typing_extensions import Self
|
||||
|
||||
from docutils.transforms import Transformer
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import Any, ClassVar
|
||||
from typing_extensions import Literal
|
||||
from typing import Any, ClassVar, Literal
|
||||
|
||||
from docutils import parsers
|
||||
from docutils.parsers.rst import states
|
||||
|
||||
@@ -2,7 +2,8 @@ import optparse
|
||||
from _typeshed import Incomplete
|
||||
from builtins import list as _list # alias to avoid name clashes with fields named list
|
||||
from collections.abc import Iterable
|
||||
from typing_extensions import Literal, TypeAlias
|
||||
from typing import Literal
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
from docutils import ApplicationError
|
||||
from docutils.io import FileOutput
|
||||
|
||||
Reference in New Issue
Block a user