mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
isort: Add more to extra_standard_library (#9098)
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
import types
|
||||
from _codecs import *
|
||||
from _typeshed import ReadableBuffer, Self
|
||||
from abc import abstractmethod
|
||||
from collections.abc import Callable, Generator, Iterable
|
||||
from typing import Any, BinaryIO, Protocol, TextIO
|
||||
from typing_extensions import Literal
|
||||
|
||||
from _codecs import *
|
||||
|
||||
__all__ = [
|
||||
"register",
|
||||
"lookup",
|
||||
|
||||
@@ -1,9 +1,4 @@
|
||||
import types
|
||||
from _typeshed import StrPath
|
||||
from os import PathLike
|
||||
from types import TracebackType
|
||||
from typing import IO, Any, Protocol
|
||||
|
||||
from _imp import (
|
||||
acquire_lock as acquire_lock,
|
||||
create_dynamic as create_dynamic,
|
||||
@@ -15,6 +10,10 @@ from _imp import (
|
||||
lock_held as lock_held,
|
||||
release_lock as release_lock,
|
||||
)
|
||||
from _typeshed import StrPath
|
||||
from os import PathLike
|
||||
from types import TracebackType
|
||||
from typing import IO, Any, Protocol
|
||||
|
||||
SEARCH_ERROR: int
|
||||
PY_SOURCE: int
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import sys
|
||||
|
||||
from _operator import *
|
||||
|
||||
__all__ = [
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import sys
|
||||
from _socket import _Address as _SourceAddress
|
||||
from _typeshed import ReadableBuffer, Self, _BufferWithLen
|
||||
from collections.abc import Sequence
|
||||
from email.message import Message as _Message
|
||||
@@ -9,8 +10,6 @@ from types import TracebackType
|
||||
from typing import Any, Protocol, overload
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
from _socket import _Address as _SourceAddress
|
||||
|
||||
__all__ = [
|
||||
"SMTPException",
|
||||
"SMTPServerDisconnected",
|
||||
|
||||
@@ -1,15 +1,8 @@
|
||||
import sys
|
||||
from _typeshed import ReadableBuffer, Self, WriteableBuffer
|
||||
from collections.abc import Iterable
|
||||
from enum import IntEnum, IntFlag
|
||||
from io import BufferedReader, BufferedRWPair, BufferedWriter, IOBase, RawIOBase, TextIOWrapper
|
||||
from typing import Any, Protocol, overload
|
||||
from typing_extensions import Literal
|
||||
|
||||
# Ideally, we'd just do "from _socket import *". Unfortunately, socket
|
||||
# overrides some definitions from _socket incompatibly. mypy incorrectly
|
||||
# prefers the definitions from _socket over those defined here.
|
||||
import _socket
|
||||
import sys
|
||||
from _socket import (
|
||||
_FD,
|
||||
EAI_AGAIN as EAI_AGAIN,
|
||||
@@ -119,6 +112,12 @@ from _socket import (
|
||||
setdefaulttimeout as setdefaulttimeout,
|
||||
timeout as timeout,
|
||||
)
|
||||
from _typeshed import ReadableBuffer, Self, WriteableBuffer
|
||||
from collections.abc import Iterable
|
||||
from enum import IntEnum, IntFlag
|
||||
from io import BufferedReader, BufferedRWPair, BufferedWriter, IOBase, RawIOBase, TextIOWrapper
|
||||
from typing import Any, Protocol, overload
|
||||
from typing_extensions import Literal
|
||||
|
||||
if sys.platform != "darwin" or sys.version_info >= (3, 9):
|
||||
from _socket import (
|
||||
|
||||
@@ -1,10 +1,5 @@
|
||||
import sys
|
||||
from _typeshed import Self, SupportsKeysAndGetItem
|
||||
from _weakrefset import WeakSet as WeakSet
|
||||
from collections.abc import Callable, Iterable, Iterator, Mapping, MutableMapping
|
||||
from typing import Any, Generic, TypeVar, overload
|
||||
from typing_extensions import ParamSpec
|
||||
|
||||
from _weakref import (
|
||||
CallableProxyType as CallableProxyType,
|
||||
ProxyType as ProxyType,
|
||||
@@ -14,6 +9,10 @@ from _weakref import (
|
||||
proxy as proxy,
|
||||
ref as ref,
|
||||
)
|
||||
from _weakrefset import WeakSet as WeakSet
|
||||
from collections.abc import Callable, Iterable, Iterator, Mapping, MutableMapping
|
||||
from typing import Any, Generic, TypeVar, overload
|
||||
from typing_extensions import ParamSpec
|
||||
|
||||
__all__ = [
|
||||
"ref",
|
||||
|
||||
Reference in New Issue
Block a user