Update typing_extensions imports in third-party stubs (#11245)

This commit is contained in:
Sebastian Rittau
2024-01-05 15:40:13 +01:00
committed by GitHub
parent 1b471a9a0a
commit b6eaadcfe5
488 changed files with 715 additions and 845 deletions

View File

@@ -1,6 +1,6 @@
import re
from _typeshed import StrPath
from typing_extensions import Literal
from typing import Literal
from xdg.IniFile import IniFile

View File

@@ -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: ...

View File

@@ -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

View File

@@ -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

View File

@@ -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]

View File

@@ -1,5 +1,5 @@
from shutil import which as which
from typing_extensions import Literal
from typing import Literal
PY3: Literal[True]