mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-21 09:08:27 +08:00
Update typing_extensions imports in third-party stubs (#11245)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import re
|
||||
from _typeshed import StrPath
|
||||
from typing_extensions import Literal
|
||||
from typing import Literal
|
||||
|
||||
from xdg.IniFile import IniFile
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import re
|
||||
from collections.abc import Iterable, KeysView
|
||||
from typing import overload
|
||||
from typing_extensions import Literal
|
||||
from typing import Literal, overload
|
||||
|
||||
def is_ascii(s: str) -> bool: ...
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import xml.dom
|
||||
from _typeshed import Unused
|
||||
from collections.abc import Collection, Iterable, Iterator
|
||||
from types import CodeType
|
||||
from typing_extensions import Literal
|
||||
from typing import Literal
|
||||
|
||||
from .DesktopEntry import DesktopEntry
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from _typeshed import StrPath, Unused
|
||||
from typing import overload
|
||||
from typing_extensions import Literal, TypeAlias
|
||||
from typing import Literal, overload
|
||||
from typing_extensions import TypeAlias
|
||||
from xml.etree.ElementTree import ElementTree
|
||||
|
||||
from .Menu import Menu, MenuEntry, Separator, XMLMenuBuilder
|
||||
|
||||
@@ -3,7 +3,8 @@ from _typeshed import StrOrBytesPath, SupportsLenAndGetItem, Unused
|
||||
from collections import defaultdict
|
||||
from collections.abc import Collection, Iterable
|
||||
from io import BytesIO
|
||||
from typing_extensions import Literal, Self, TypeAlias
|
||||
from typing import Literal
|
||||
from typing_extensions import Self, TypeAlias
|
||||
|
||||
FREE_NS: str
|
||||
types: dict[str, MIMEtype]
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from shutil import which as which
|
||||
from typing_extensions import Literal
|
||||
from typing import Literal
|
||||
|
||||
PY3: Literal[True]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user