mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-21 00:58:28 +08:00
Third-party stubs: import from collections.abc where possible (#7637)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import datetime
|
||||
from _typeshed import Self
|
||||
from typing import Iterable
|
||||
from collections.abc import Iterable
|
||||
|
||||
from dateutil.relativedelta import relativedelta
|
||||
|
||||
|
||||
@@ -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])
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from typing import Any, Mapping
|
||||
from collections.abc import Mapping
|
||||
from typing import Any
|
||||
|
||||
from markdown.core import Markdown
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from typing import Mapping
|
||||
from collections.abc import Mapping
|
||||
|
||||
TAGS: Mapping[int, str]
|
||||
GPSTAGS: Mapping[int, str]
|
||||
|
||||
@@ -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 (
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 (
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from typing import Callable
|
||||
from collections.abc import Callable
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
from .dammit import EntitySubstitution as EntitySubstitution
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from typing import Any, Mapping
|
||||
from collections.abc import Mapping
|
||||
from typing import Any
|
||||
|
||||
from boto.connection import AWSQueryConnection
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from typing import Any, Iterable, Iterator
|
||||
from collections.abc import Iterable, Iterator
|
||||
from typing import Any
|
||||
|
||||
from .key import Key
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from typing import Any, Callable, overload
|
||||
from collections.abc import Callable
|
||||
from typing import Any, overload
|
||||
|
||||
class Key:
|
||||
DefaultContentType: str
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from typing import Hashable
|
||||
from collections.abc import Hashable
|
||||
|
||||
__all__ = ("hashkey", "typedkey")
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from typing import Iterator
|
||||
from collections.abc import Iterator
|
||||
|
||||
class ChevronError(SyntaxError): ...
|
||||
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -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])
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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]]
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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]: ...
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from typing import Any, Iterable
|
||||
from collections.abc import Iterable
|
||||
from typing import Any
|
||||
|
||||
class FormatChecker:
|
||||
checkers: Any
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from typing import Any, Callable
|
||||
from collections.abc import Callable
|
||||
from typing import Any
|
||||
|
||||
from ..scope_manager import ScopeManager
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from typing import Any, Iterable
|
||||
from collections.abc import Iterable
|
||||
from typing import Any
|
||||
|
||||
class BERException(Exception): ...
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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")
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import socket
|
||||
from typing import Mapping
|
||||
from collections.abc import Mapping
|
||||
|
||||
from paramiko.pkey import PKey
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user