mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-10 21:42:25 +08:00
Update typing_extensions imports in third-party stubs (#11245)
This commit is contained in:
@@ -2,8 +2,8 @@ import sys
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import Callable, Iterable, Iterator
|
||||
from contextlib import AbstractContextManager
|
||||
from typing import Any, overload
|
||||
from typing_extensions import Literal, Self, TypeAlias
|
||||
from typing import Any, Literal, overload
|
||||
from typing_extensions import Self, TypeAlias
|
||||
|
||||
from psutil._common import (
|
||||
AIX as AIX,
|
||||
|
||||
@@ -2,8 +2,7 @@ import enum
|
||||
from _typeshed import Incomplete, StrOrBytesPath, SupportsWrite
|
||||
from collections.abc import Callable
|
||||
from socket import AF_INET6 as AF_INET6, AddressFamily, SocketKind
|
||||
from typing import Any, NamedTuple, TypeVar, overload
|
||||
from typing_extensions import Literal
|
||||
from typing import Any, Literal, NamedTuple, TypeVar, overload
|
||||
|
||||
POSIX: bool
|
||||
WINDOWS: bool
|
||||
|
||||
@@ -12,7 +12,7 @@ from contextlib import redirect_stderr as redirect_stderr
|
||||
from functools import lru_cache as lru_cache
|
||||
from shutil import get_terminal_size as get_terminal_size, which as which
|
||||
from subprocess import TimeoutExpired
|
||||
from typing_extensions import Literal
|
||||
from typing import Literal
|
||||
|
||||
PY3: Literal[True]
|
||||
long = int
|
||||
|
||||
Reference in New Issue
Block a user