Third-party stubs: import from collections.abc where possible (#7637)

This commit is contained in:
Alex Waygood
2022-04-16 14:52:57 +01:00
committed by GitHub
parent ee09d9eb19
commit 653f2c6ba4
146 changed files with 268 additions and 156 deletions

View File

@@ -1,6 +1,6 @@
import datetime
from _typeshed import Self
from typing import Iterable
from collections.abc import Iterable
from dateutil.relativedelta import relativedelta

View File

@@ -1,6 +1,7 @@
from collections.abc import Iterable
from datetime import timedelta
from logging import Logger
from typing import Any, Iterable, Pattern, TypeVar, overload
from typing import Any, Pattern, TypeVar, overload
from typing_extensions import TypeAlias, TypedDict
_IterableT = TypeVar("_IterableT", bound=Iterable[Any])

View File

@@ -1,6 +1,7 @@
from collections.abc import Callable
from datetime import timedelta
from logging import Logger
from typing import Any, Callable
from typing import Any
from typing_extensions import ParamSpec
_P = ParamSpec("_P")

View File

@@ -1,6 +1,7 @@
from collections.abc import Callable, Iterable
from datetime import timedelta
from logging import Logger
from typing import Any, Callable, Iterable
from typing import Any
_App = Any # flask is not part of typeshed

View File

@@ -1,5 +1,6 @@
from _typeshed import Self
from typing import Any, Callable, Generator, Iterable, Iterator, Sequence, overload
from collections.abc import Callable, Generator, Iterable, Iterator, Sequence
from typing import Any, overload
_NDArray = Any # FIXME: no typings for numpy arrays

View File

@@ -1,4 +1,5 @@
from typing import Any, Iterable, TypeVar
from collections.abc import Iterable
from typing import Any, TypeVar
from xml.etree.ElementTree import Element, ElementTree
from . import Markdown

View File

@@ -1,5 +1,6 @@
from _typeshed import Self
from typing import Any, BinaryIO, Callable, ClassVar, Mapping, Sequence, Text, TextIO
from collections.abc import Callable, Mapping, Sequence
from typing import Any, BinaryIO, ClassVar, Text, TextIO
from typing_extensions import Literal
from xml.etree.ElementTree import Element

View File

@@ -1,4 +1,5 @@
from typing import Any, Mapping
from collections.abc import Mapping
from typing import Any
from markdown.core import Markdown

View File

@@ -1,4 +1,4 @@
from typing import Mapping
from collections.abc import Mapping
TAGS: Mapping[int, str]
GPSTAGS: Mapping[int, str]

View File

@@ -1,7 +1,7 @@
from _typeshed import Self, SupportsRead, SupportsWrite
from collections.abc import Iterable, Iterator, MutableMapping
from collections.abc import Callable, Iterable, Iterator, MutableMapping, Sequence
from pathlib import Path
from typing import Any, Callable, ClassVar, Protocol, Sequence, SupportsBytes, Union
from typing import Any, ClassVar, Protocol, SupportsBytes, Union
from typing_extensions import Literal, TypeAlias
from ._imaging import (

View File

@@ -1,5 +1,5 @@
from collections.abc import Container
from typing import Any, Sequence, overload
from collections.abc import Container, Sequence
from typing import Any, overload
from typing_extensions import Literal, TypeAlias
from .Image import Image

View File

@@ -1,5 +1,6 @@
from _typeshed import Self
from typing import Any, Callable, Iterable, Sequence
from collections.abc import Callable, Iterable, Sequence
from typing import Any
from typing_extensions import Literal, TypeAlias
from .Image import Image

View File

@@ -1,4 +1,5 @@
from typing import Any, Iterable, Protocol, Union
from collections.abc import Iterable
from typing import Any, Protocol, Union
from typing_extensions import TypeAlias
from .Image import Image, _Resample, _Size

View File

@@ -1,6 +1,7 @@
from _typeshed import Self
from collections.abc import Mapping
from socket import socket as _socket
from typing import Any, AnyStr, Generic, Mapping, TypeVar, overload
from typing import Any, AnyStr, Generic, TypeVar, overload
from .charset import charset_by_id as charset_by_id, charset_by_name as charset_by_name
from .constants import CLIENT as CLIENT, COMMAND as COMMAND, FIELD_TYPE as FIELD_TYPE, SERVER_STATUS as SERVER_STATUS

View File

@@ -1,5 +1,6 @@
from _typeshed import Self
from typing import Any, Iterable, Iterator, Text
from collections.abc import Iterable, Iterator
from typing import Any, Text
from .connections import Connection

View File

@@ -1,4 +1,5 @@
from typing import Any, Generator
from collections.abc import Generator
from typing import Any
from ..formatter import Formatter
from .bbcode import BBCodeFormatter as BBCodeFormatter

View File

@@ -1,4 +1,5 @@
from typing import Any, Generator, Iterable
from collections.abc import Generator, Iterable
from typing import Any
from pkg_resources import EntryPoint
from pygments.filter import Filter

View File

@@ -1,8 +1,8 @@
from _typeshed import Self
from abc import abstractmethod
from collections.abc import Mapping
from collections.abc import Callable, Mapping
from types import TracebackType
from typing import Any, Callable, TypeVar, overload
from typing import Any, TypeVar, overload
from typing_extensions import TypeAlias
from ..dbapi import DBAPIConnection

View File

@@ -1,6 +1,7 @@
from _typeshed import Self
from collections.abc import Coroutine, Generator, Iterator
from types import CodeType, FrameType, TracebackType, coroutine
from typing import Any, Coroutine, Generator, Generic, Iterator, TypeVar
from typing import Any, Generic, TypeVar
_T = TypeVar("_T")
_T_co = TypeVar("_T_co", covariant=True)

View File

@@ -1,8 +1,9 @@
import sys
from _typeshed import StrOrBytesPath
from asyncio.events import AbstractEventLoop
from collections.abc import Sequence
from os import stat_result
from typing import Any, Sequence, overload
from typing import Any, overload
from typing_extensions import TypeAlias
from . import ospath as path

View File

@@ -7,7 +7,8 @@ from _typeshed import (
StrOrBytesPath,
)
from asyncio import AbstractEventLoop
from typing import Any, Callable, overload
from collections.abc import Callable
from typing import Any, overload
from typing_extensions import Literal, TypeAlias
from ..base import AiofilesContextManager

View File

@@ -1,6 +1,6 @@
from _typeshed import ReadableBuffer, StrOrBytesPath, WriteableBuffer
from collections.abc import Iterable
from io import FileIO
from typing import Iterable
from ..base import AsyncBase

View File

@@ -1,5 +1,6 @@
from _typeshed import StrOrBytesPath
from typing import BinaryIO, Iterable
from collections.abc import Iterable
from typing import BinaryIO
from ..base import AsyncBase

View File

@@ -1,5 +1,6 @@
from collections.abc import Iterable
from logging import Logger
from typing import Any, Iterable
from typing import Any
from aws_xray_sdk import global_sdk_config as global_sdk_config

View File

@@ -1,6 +1,7 @@
import time
from collections.abc import Callable, Iterable
from logging import Logger
from typing import Any, Callable, Iterable
from typing import Any
from aws_xray_sdk import global_sdk_config as global_sdk_config
from aws_xray_sdk.version import VERSION as VERSION

View File

@@ -1,5 +1,6 @@
from _typeshed import Self, SupportsRead
from typing import Any, Sequence
from collections.abc import Sequence
from typing import Any
from .builder import TreeBuilder
from .element import (

View File

@@ -1,6 +1,6 @@
from _typeshed import Self
from collections.abc import Iterator
from typing import Any, Callable, Generic, Iterable, Pattern, TypeVar, overload
from collections.abc import Callable, Iterable, Iterator
from typing import Any, Generic, Pattern, TypeVar, overload
from typing_extensions import TypeAlias
from . import BeautifulSoup

View File

@@ -1,4 +1,4 @@
from typing import Callable
from collections.abc import Callable
from typing_extensions import TypeAlias
from .dammit import EntitySubstitution as EntitySubstitution

View File

@@ -1,4 +1,5 @@
from typing import Any, Mapping
from collections.abc import Mapping
from typing import Any
from boto.connection import AWSQueryConnection

View File

@@ -1,4 +1,5 @@
from typing import Any, Iterable, Iterator
from collections.abc import Iterable, Iterator
from typing import Any
from .key import Key

View File

@@ -1,4 +1,5 @@
from typing import Any, Callable, overload
from collections.abc import Callable
from typing import Any, overload
class Key:
DefaultContentType: str

View File

@@ -3,8 +3,9 @@ import logging.handlers
import subprocess
import sys
import time
from collections.abc import Callable, Iterable, Mapping, Sequence
from contextlib import AbstractContextManager
from typing import IO, Any, Callable, Iterable, Mapping, Sequence, TypeVar
from typing import IO, Any, TypeVar
from typing_extensions import TypeAlias
import boto.connection

View File

@@ -1,7 +1,7 @@
from _typeshed import IdentityFunction
from collections.abc import Iterator, Sequence
from collections.abc import Callable, Iterator, MutableMapping, Sequence
from contextlib import AbstractContextManager
from typing import Any, Callable, Generic, MutableMapping, TypeVar, overload
from typing import Any, Generic, TypeVar, overload
__all__ = ("Cache", "FIFOCache", "LFUCache", "LRUCache", "MRUCache", "RRCache", "TLRUCache", "TTLCache", "cached", "cachedmethod")
__version__: str

View File

@@ -1,5 +1,6 @@
from _typeshed import IdentityFunction
from typing import Callable, Sequence, TypeVar
from collections.abc import Callable, Sequence
from typing import TypeVar
__all__ = ("fifo_cache", "lfu_cache", "lru_cache", "mru_cache", "rr_cache", "ttl_cache")
_T = TypeVar("_T")

View File

@@ -1,4 +1,4 @@
from typing import Hashable
from collections.abc import Hashable
__all__ = ("hashkey", "typedkey")

View File

@@ -1,5 +1,6 @@
from _typeshed import StrPath, SupportsRead
from typing import Any, MutableSequence, Sequence
from collections.abc import MutableSequence, Sequence
from typing import Any
g_token_cache: dict[str, list[tuple[str, str]]] # undocumented

View File

@@ -1,4 +1,4 @@
from typing import Iterator
from collections.abc import Iterator
class ChevronError(SyntaxError): ...

View File

@@ -1,5 +1,6 @@
import sys
from typing import Any, Callable, ClassVar, Generic, Iterator, Mapping, TypeVar
from collections.abc import Callable, Iterator, Mapping
from typing import Any, ClassVar, Generic, TypeVar
from typing_extensions import ParamSpec, final
if sys.version_info >= (3, 9):

View File

@@ -1,5 +1,6 @@
from collections.abc import Iterable
from enum import Enum
from typing import Any, Iterable
from typing import Any
from cryptography.hazmat.primitives.asymmetric.ec import EllipticCurvePrivateKey
from cryptography.hazmat.primitives.asymmetric.rsa import RSAPrivateKey

View File

@@ -1,9 +1,10 @@
import datetime
from _typeshed import Self
from abc import ABCMeta, abstractmethod
from collections.abc import Generator, Iterable, Sequence
from enum import Enum
from ipaddress import IPv4Address, IPv4Network, IPv6Address, IPv6Network
from typing import Any, ClassVar, Generator, Generic, Iterable, Sequence, TypeVar
from typing import Any, ClassVar, Generic, TypeVar
from cryptography.hazmat.backends.interfaces import X509Backend
from cryptography.hazmat.primitives.asymmetric.dsa import DSAPrivateKey, DSAPublicKey

View File

@@ -1,5 +1,6 @@
import sys
from typing import Any, Callable, Generic, Iterable, Mapping, TypeVar, overload
from collections.abc import Callable, Iterable, Mapping
from typing import Any, Generic, TypeVar, overload
if sys.version_info >= (3, 9):
from types import GenericAlias

View File

@@ -1,5 +1,6 @@
from collections import OrderedDict
from typing import Any, Iterator
from collections.abc import Iterator
from typing import Any
from .locale import Locale

View File

@@ -1,5 +1,6 @@
from collections import OrderedDict
from typing import Any, Mapping
from collections.abc import Mapping
from typing import Any
def strip_braces(date_string: str) -> str: ...
def normalize_unicode(string: str, form: str = ...) -> str: ...

View File

@@ -1,5 +1,6 @@
import sys
from typing import Any, Callable, Iterator, NamedTuple, Pattern, Text, TypeVar
from collections.abc import Callable, Iterator
from typing import Any, NamedTuple, Pattern, Text, TypeVar
from typing_extensions import ParamSpec
_C = TypeVar("_C", bound=Callable[..., Any])

View File

@@ -1,4 +1,5 @@
from typing import Any, Callable
from collections.abc import Callable
from typing import Any
from typing_extensions import TypeAlias
import docutils.nodes

View File

@@ -1,4 +1,4 @@
from typing import Hashable, Iterable
from collections.abc import Hashable, Iterable
def eval(a: Iterable[Hashable], b: Iterable[Hashable]) -> int: ...
def distance(a: Iterable[Hashable], b: Iterable[Hashable]) -> int: ...

View File

@@ -3,7 +3,8 @@
# Therefore typeshed is the best place.
import ast
from typing import Any, ClassVar, Generator
from collections.abc import Generator
from typing import Any, ClassVar
class Plugin:
name: ClassVar[str]

View File

@@ -1,6 +1,7 @@
import argparse
import ast
from typing import Any, Sequence
from collections.abc import Sequence
from typing import Any
class BugBearChecker:
name: str

View File

@@ -1,5 +1,6 @@
import ast
from typing import Any, ClassVar, Generator
from collections.abc import Generator
from typing import Any, ClassVar
class BuiltinsChecker:
name: ClassVar[str]

View File

@@ -1,6 +1,7 @@
import argparse
import ast
from typing import Any, ClassVar, Generator, Iterable
from collections.abc import Generator, Iterable
from typing import Any, ClassVar
class pep257Checker:
name: ClassVar[str]

View File

@@ -1,6 +1,7 @@
import argparse
import ast
from typing import Any, Generic, Iterable, Iterator, TypeVar
from collections.abc import Iterable, Iterator
from typing import Any, Generic, TypeVar
from typing_extensions import TypeAlias
FLAKE8_ERROR: TypeAlias = tuple[int, int, str, type[Any]]

View File

@@ -1,7 +1,7 @@
import ast
from argparse import Namespace
from collections.abc import Container
from typing import Any, Generator
from collections.abc import Container, Generator
from typing import Any
rst_prefix: str
rst_fail_load: int

View File

@@ -1,5 +1,6 @@
import ast
from typing import Any, ClassVar, Generator
from collections.abc import Generator
from typing import Any, ClassVar
class Plugin:
name: ClassVar[str]

View File

@@ -1,6 +1,7 @@
import argparse
import ast
from typing import Any, ClassVar, Generator
from collections.abc import Generator
from typing import Any, ClassVar
class Plugin:
name: ClassVar[str]

View File

@@ -1,6 +1,7 @@
import collections
from _typeshed import Self
from typing import Any, Generic, Iterable, Iterator, Mapping, TypeVar, overload
from collections.abc import Iterable, Iterator, Mapping
from typing import Any, Generic, TypeVar, overload
_KT = TypeVar("_KT")
_VT = TypeVar("_VT")

View File

@@ -1,4 +1,5 @@
from typing import Any, Callable, NamedTuple
from collections.abc import Callable
from typing import Any, NamedTuple
from google.cloud.ndb import Key, exceptions as exceptions

View File

@@ -1,7 +1,7 @@
import datetime
from _typeshed import Self
from collections.abc import Iterable, Sequence
from typing import Any, Callable, NoReturn
from collections.abc import Callable, Iterable, Sequence
from typing import Any, NoReturn
from typing_extensions import Literal, TypeAlias
from google.cloud.ndb import exceptions, key as key_module, query as query_module, tasklets as tasklets_module

View File

@@ -1,7 +1,8 @@
import decimal
from _typeshed import ReadableBuffer
from collections.abc import Sequence
from datetime import date, datetime, time
from typing import Any, Sequence, overload
from typing import Any, overload
from typing_extensions import Literal, TypeAlias
from .resultrow import ResultRow

View File

@@ -1,4 +1,5 @@
from typing import Iterable, NoReturn, Sequence
from collections.abc import Iterable, Sequence
from typing import NoReturn
from ..collection import Collection
from ..parser import ParserContext, ParseResult

View File

@@ -1,4 +1,5 @@
from typing import Any, Iterable
from collections.abc import Iterable
from typing import Any
from .collection import Collection
from .config import Config

View File

@@ -1,8 +1,9 @@
import threading
from collections.abc import Callable, Iterable, Mapping
from contextlib import AbstractContextManager
from logging import Logger
from types import TracebackType
from typing import Any, Callable, Iterable, Mapping, NamedTuple
from typing import Any, NamedTuple
LOG_FORMAT: str

View File

@@ -1,5 +1,5 @@
import threading
from typing import Iterable
from collections.abc import Iterable
class StreamWatcher(threading.local):
def submit(self, stream) -> Iterable[str]: ...

View File

@@ -1,4 +1,5 @@
from typing import Any, Iterable
from collections.abc import Iterable
from typing import Any
class FormatChecker:
checkers: Any

View File

@@ -1,4 +1,5 @@
from typing import Any, ItemsView
from collections.abc import ItemsView
from typing import Any
def ignore_ref_siblings(schema) -> list[tuple[str, Any]] | ItemsView[str, Any]: ...
def dependencies_draft3(validator, dependencies, instance, schema) -> None: ...

View File

@@ -1,4 +1,4 @@
from typing import Callable, Iterable, Mapping
from collections.abc import Callable, Iterable, Mapping
def is_array(checker, instance) -> bool: ...
def is_bool(checker, instance) -> bool: ...

View File

@@ -1,5 +1,6 @@
from _typeshed import SupportsKeysAndGetItem
from typing import Any, Generator, Iterable, Iterator, Mapping, MutableMapping, Sized
from collections.abc import Generator, Iterable, Iterator, Mapping, MutableMapping, Sized
from typing import Any
class URIDict(MutableMapping[str, str]):
def normalize(self, uri: str) -> str: ...

View File

@@ -1,4 +1,5 @@
from typing import Any, ClassVar, Iterator, Protocol
from collections.abc import Iterator
from typing import Any, ClassVar, Protocol
from jsonschema._format import FormatChecker
from jsonschema._types import TypeChecker

View File

@@ -1,6 +1,6 @@
from _typeshed import SupportsKeysAndGetItem
from collections.abc import Callable, Generator, Iterable
from typing import Any, ClassVar, Mapping
from collections.abc import Callable, Generator, Iterable, Mapping
from typing import Any, ClassVar
from typing_extensions import TypeAlias
from ._utils import URIDict

View File

@@ -1,4 +1,5 @@
from typing import Any, Callable
from collections.abc import Callable
from typing import Any
from ..scope_manager import ScopeManager

View File

@@ -1,5 +1,5 @@
from collections.abc import Callable
from threading import Event
from typing import Callable
from typing_extensions import TypeAlias
from paramiko.pkey import PKey

View File

@@ -1,4 +1,5 @@
from typing import Any, Iterable
from collections.abc import Iterable
from typing import Any
class BERException(Exception): ...

View File

@@ -1,6 +1,7 @@
from collections.abc import Callable, Mapping
from logging import Logger
from threading import Condition, Event, Lock
from typing import Any, Callable, Mapping, TypeVar
from typing import Any, TypeVar
from paramiko.buffered_pipe import BufferedPipe
from paramiko.file import BufferedFile

View File

@@ -1,4 +1,5 @@
from typing import Iterable, Mapping, NoReturn
from collections.abc import Iterable, Mapping
from typing import NoReturn
from paramiko.channel import Channel, ChannelFile, ChannelStderrFile, ChannelStdinFile
from paramiko.hostkeys import HostKeys

View File

@@ -1,5 +1,6 @@
from _typeshed import Self
from typing import IO, Any, Iterable, Pattern
from collections.abc import Iterable
from typing import IO, Any, Pattern
from paramiko.ssh_exception import ConfigParseError as ConfigParseError, CouldNotCanonicalize as CouldNotCanonicalize

View File

@@ -1,4 +1,5 @@
from typing import IO, Any, Callable
from collections.abc import Callable
from typing import IO, Any
from paramiko.message import Message
from paramiko.pkey import PKey

View File

@@ -1,4 +1,5 @@
from typing import IO, Any, Callable, Sequence
from collections.abc import Callable, Sequence
from typing import IO, Any
from cryptography.hazmat.primitives.asymmetric.ec import EllipticCurve, EllipticCurvePrivateKey, EllipticCurvePublicKey
from cryptography.hazmat.primitives.hashes import HashAlgorithm

View File

@@ -1,4 +1,5 @@
from typing import Any, AnyStr, Generic, Iterable
from collections.abc import Iterable
from typing import Any, AnyStr, Generic
from paramiko.util import ClosingContextManager

View File

@@ -1,5 +1,5 @@
from _typeshed import Self
from typing import Iterator, Mapping, MutableMapping
from collections.abc import Iterator, Mapping, MutableMapping
from paramiko.pkey import PKey

View File

@@ -1,6 +1,6 @@
import sys
from _typeshed import ReadableBuffer as ReadableBuffer
from typing import Callable
from collections.abc import Callable
from cryptography.hazmat.primitives.asymmetric.x25519 import X25519PrivateKey
from paramiko.message import Message

View File

@@ -1,6 +1,6 @@
import sys
from _typeshed import ReadableBuffer
from typing import Callable
from collections.abc import Callable
from cryptography.hazmat.primitives.asymmetric.ec import EllipticCurve, EllipticCurvePrivateKey, EllipticCurvePublicKey
from paramiko.message import Message

View File

@@ -1,6 +1,6 @@
import sys
from _typeshed import ReadableBuffer
from typing import Callable
from collections.abc import Callable
from paramiko.message import Message
from paramiko.transport import Transport

View File

@@ -1,6 +1,6 @@
import sys
from _typeshed import ReadableBuffer
from typing import Callable
from collections.abc import Callable
from paramiko.message import Message
from paramiko.transport import Transport

View File

@@ -1,6 +1,6 @@
import sys
from _typeshed import ReadableBuffer
from typing import Callable
from collections.abc import Callable
from paramiko.kex_group1 import KexGroup1 as KexGroup1

View File

@@ -1,6 +1,6 @@
import sys
from _typeshed import ReadableBuffer
from typing import Callable
from collections.abc import Callable
from paramiko.kex_group1 import KexGroup1 as KexGroup1

View File

@@ -1,5 +1,6 @@
import sys
from typing import Any, Iterable
from collections.abc import Iterable
from typing import Any
from typing_extensions import TypeAlias
from .common import _LikeBytes

View File

@@ -1,7 +1,8 @@
import sys
from collections.abc import Callable
from logging import Logger
from socket import socket
from typing import Any, Callable
from typing import Any
from cryptography.hazmat.primitives.ciphers import Cipher
from paramiko.compress import ZlibCompressor, ZlibDecompressor

View File

@@ -1,5 +1,6 @@
import sys
from typing import Any, Iterable, Sequence, TypeVar
from collections.abc import Iterable, Sequence
from typing import Any, TypeVar
_T = TypeVar("_T")

View File

@@ -1,4 +1,5 @@
from typing import IO, Any, Callable
from collections.abc import Callable
from typing import IO, Any
from cryptography.hazmat.primitives.asymmetric.rsa import RSAPrivateKey, RSAPublicKey, RSAPublicNumbers
from paramiko.message import Message

View File

@@ -1,6 +1,7 @@
from _typeshed import Self
from collections.abc import Callable, Iterator
from logging import Logger
from typing import IO, Any, Callable, Iterator
from typing import IO, Any
from typing_extensions import TypeAlias
from paramiko.channel import Channel

View File

@@ -1,4 +1,5 @@
from typing import Any, Iterator, Sequence
from collections.abc import Iterator, Sequence
from typing import Any
from paramiko.file import BufferedFile
from paramiko.sftp_attr import SFTPAttributes

View File

@@ -1,5 +1,5 @@
import socket
from typing import Mapping
from collections.abc import Mapping
from paramiko.pkey import PKey

View File

@@ -1,8 +1,9 @@
from collections.abc import Callable, Iterable, Sequence
from logging import Logger
from socket import socket
from threading import Condition, Event, Lock, Thread
from types import ModuleType
from typing import Any, Callable, Iterable, Protocol, Sequence
from typing import Any, Protocol
from typing_extensions import TypeAlias
from paramiko.auth_handler import AuthHandler, _InteractiveCallback

View File

@@ -1,8 +1,9 @@
import sys
from _typeshed import Self
from collections.abc import Callable
from logging import Logger, LogRecord
from types import TracebackType
from typing import IO, AnyStr, Callable, Protocol, TypeVar
from typing import IO, AnyStr, Protocol, TypeVar
from paramiko.config import SSHConfig, SSHConfigDict
from paramiko.hostkeys import HostKeys

View File

@@ -1,5 +1,6 @@
import typing
from typing import Any, Callable, Mapping, Pattern, Union
from collections.abc import Callable, Mapping
from typing import Any, Pattern, Union
from typing_extensions import TypeAlias
from parsimonious.exceptions import ParseError

View File

@@ -1,6 +1,7 @@
import typing
from collections import OrderedDict
from typing import Any, Callable, Mapping, NoReturn
from collections.abc import Callable, Mapping
from typing import Any, NoReturn
from parsimonious.expressions import _CALLABLE_TYPE, Expression, Literal, Lookahead, Not, OneOf, Regex, Sequence, TokenMatcher
from parsimonious.nodes import Node, NodeVisitor

View File

@@ -1,4 +1,5 @@
from typing import Any, Callable, Iterator, Match, NoReturn, Sequence, TypeVar
from collections.abc import Callable, Iterator, Sequence
from typing import Any, Match, NoReturn, TypeVar
from parsimonious.exceptions import VisitationError as VisitationError
from parsimonious.expressions import Expression

View File

@@ -1,6 +1,7 @@
import ast
from argparse import Namespace
from typing import Any, Generator
from collections.abc import Generator
from typing import Any
__version__: str

View File

@@ -1,5 +1,5 @@
from collections.abc import MutableMapping
from typing import Any, Callable, Iterable, Iterator, Sequence, Text, TypeVar, overload
from collections.abc import Callable, Iterable, Iterator, MutableMapping, Sequence
from typing import Any, Text, TypeVar, overload
from typing_extensions import SupportsIndex
from google.protobuf.descriptor import Descriptor

View File

@@ -1,4 +1,5 @@
from typing import Any, Callable
from collections.abc import Callable
from typing import Any
from typing_extensions import TypeAlias
from google.protobuf.descriptor import Descriptor, FieldDescriptor

View File

@@ -1,4 +1,4 @@
from typing import Callable
from collections.abc import Callable
from typing_extensions import TypeAlias
from google.protobuf.descriptor import FieldDescriptor

Some files were not shown because too many files have changed in this diff Show More