mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-15 08:17:07 +08:00
Update pyright (#6840)
This commit is contained in:
@@ -10,7 +10,7 @@ class _SybNumeric_pyodbc(sqltypes.Numeric):
|
||||
class SybaseExecutionContext_pyodbc(SybaseExecutionContext):
|
||||
def set_ddl_autocommit(self, connection, value) -> None: ...
|
||||
|
||||
class SybaseDialect_pyodbc(PyODBCConnector, SybaseDialect):
|
||||
class SybaseDialect_pyodbc(PyODBCConnector, SybaseDialect): # type: ignore # argument disparities between base classes
|
||||
supports_statement_cache: bool
|
||||
colspecs: Any
|
||||
@classmethod
|
||||
|
||||
@@ -75,7 +75,7 @@ class ORMFromStatementCompileState(ORMCompileState):
|
||||
@classmethod
|
||||
def create_for_statement(cls, statement_container, compiler, **kw): ...
|
||||
|
||||
class ORMSelectCompileState(ORMCompileState, SelectState):
|
||||
class ORMSelectCompileState(ORMCompileState, SelectState): # type: ignore # argument disparities between base classes
|
||||
multi_row_eager_loaders: bool
|
||||
compound_eager_adapter: Any
|
||||
correlate: Any
|
||||
|
||||
@@ -37,7 +37,7 @@ class Table(DialectKWArgs, SchemaItem, TableClause):
|
||||
def tometadata(self, metadata, schema=..., referred_schema_fn: Any | None = ..., name: Any | None = ...): ...
|
||||
def to_metadata(self, metadata, schema=..., referred_schema_fn: Any | None = ..., name: Any | None = ...): ...
|
||||
|
||||
class Column(DialectKWArgs, SchemaItem, ColumnClause):
|
||||
class Column(DialectKWArgs, SchemaItem, ColumnClause): # type: ignore # argument disparities between base classes
|
||||
__visit_name__: str
|
||||
inherit_cache: bool
|
||||
key: Any
|
||||
|
||||
@@ -155,7 +155,7 @@ class SchemaType(SchemaEventTarget):
|
||||
def create(self, bind: Any | None = ..., checkfirst: bool = ...) -> None: ...
|
||||
def drop(self, bind: Any | None = ..., checkfirst: bool = ...) -> None: ...
|
||||
|
||||
class Enum(Emulated, String, SchemaType):
|
||||
class Enum(Emulated, String, SchemaType): # type: ignore # argument disparities between base classes
|
||||
__visit_name__: str
|
||||
def __init__(self, *enums, **kw) -> None: ...
|
||||
@property
|
||||
|
||||
@@ -79,7 +79,7 @@ class NullTranslations(gettext.NullTranslations):
|
||||
ugettext: Any
|
||||
ungettext: Any
|
||||
|
||||
class Translations(NullTranslations, gettext.GNUTranslations):
|
||||
class Translations(NullTranslations, gettext.GNUTranslations): # type: ignore # argument disparities between base classes
|
||||
DEFAULT_DOMAIN: str
|
||||
domain: Any
|
||||
def __init__(self, fp: Any | None = ..., domain: Any | None = ...) -> None: ...
|
||||
|
||||
@@ -37,7 +37,7 @@ class LXMLTreeBuilderForXML(TreeBuilder):
|
||||
def comment(self, content) -> None: ...
|
||||
def test_fragment_to_document(self, fragment): ...
|
||||
|
||||
class LXMLTreeBuilder(HTMLTreeBuilder, LXMLTreeBuilderForXML):
|
||||
class LXMLTreeBuilder(HTMLTreeBuilder, LXMLTreeBuilderForXML): # type: ignore # argument disparities between base classes
|
||||
NAME: Any
|
||||
ALTERNATE_NAMES: Any
|
||||
features: Any
|
||||
|
||||
@@ -64,7 +64,7 @@ class HmacAuthV4Handler(AuthHandler, HmacKeys):
|
||||
def signature(self, http_request, string_to_sign): ...
|
||||
def add_auth(self, req, **kwargs): ...
|
||||
|
||||
class S3HmacAuthV4Handler(HmacAuthV4Handler, AuthHandler):
|
||||
class S3HmacAuthV4Handler(HmacAuthV4Handler, AuthHandler): # type: ignore # argument disparities between base classes
|
||||
capability: Any
|
||||
region_name: Any
|
||||
def __init__(self, *args, **kwargs) -> None: ...
|
||||
|
||||
@@ -268,7 +268,7 @@ class AsyncMockMixin(Base):
|
||||
class AsyncMagicMixin(MagicMixin):
|
||||
def __init__(self, *args: Any, **kw: Any) -> None: ...
|
||||
|
||||
class AsyncMock(AsyncMockMixin, AsyncMagicMixin, Mock): ...
|
||||
class AsyncMock(AsyncMockMixin, AsyncMagicMixin, Mock): ... # type: ignore # argument disparities between base classes
|
||||
|
||||
class MagicProxy(Base):
|
||||
name: str
|
||||
|
||||
@@ -6,7 +6,6 @@ _T = TypeVar("_T")
|
||||
|
||||
@final
|
||||
class Pattern(Generic[AnyStr]):
|
||||
|
||||
pattern: AnyStr
|
||||
flags: int
|
||||
groups: int
|
||||
|
||||
@@ -149,6 +149,6 @@ def cache_all(value: None) -> bool: ...
|
||||
def escape(pattern: AnyStr, special_only: bool = ..., literal_spaces: bool = ...) -> AnyStr: ...
|
||||
def template(pattern: AnyStr | _regex.Pattern[AnyStr], flags: int = ...) -> _regex.Pattern[AnyStr]: ...
|
||||
|
||||
Pattern = _regex.Pattern
|
||||
Match = _regex.Match
|
||||
Pattern = _regex.Pattern[AnyStr]
|
||||
Match = _regex.Match[AnyStr]
|
||||
Regex = compile
|
||||
|
||||
@@ -1,13 +1,15 @@
|
||||
import datetime
|
||||
from json import JSONDecoder
|
||||
from typing import Any, Callable, Iterator, Text, Type
|
||||
from typing import Any, Callable, Iterator, Text, Type, TypeVar
|
||||
|
||||
from . import auth, cookies, exceptions, hooks, status_codes, structures, utils
|
||||
from .cookies import RequestsCookieJar
|
||||
from .packages.urllib3 import exceptions as urllib3_exceptions, fields, filepost, util
|
||||
|
||||
_VT = TypeVar("_VT")
|
||||
|
||||
default_hooks = hooks.default_hooks
|
||||
CaseInsensitiveDict = structures.CaseInsensitiveDict
|
||||
CaseInsensitiveDict = structures.CaseInsensitiveDict[_VT]
|
||||
HTTPBasicAuth = auth.HTTPBasicAuth
|
||||
cookiejar_from_dict = cookies.cookiejar_from_dict
|
||||
get_cookie_header = cookies.get_cookie_header
|
||||
|
||||
@@ -5,6 +5,9 @@ from . import adapters, auth as _auth, compat, cookies, exceptions, hooks, model
|
||||
from .models import Response
|
||||
from .packages.urllib3 import _collections
|
||||
|
||||
_KT = TypeVar("_KT")
|
||||
_VT = TypeVar("_VT")
|
||||
|
||||
_BaseAdapter = adapters.BaseAdapter
|
||||
OrderedDict = compat.OrderedDict
|
||||
cookiejar_from_dict = cookies.cookiejar_from_dict
|
||||
@@ -23,8 +26,8 @@ TooManyRedirects = exceptions.TooManyRedirects
|
||||
InvalidSchema = exceptions.InvalidSchema
|
||||
ChunkedEncodingError = exceptions.ChunkedEncodingError
|
||||
ContentDecodingError = exceptions.ContentDecodingError
|
||||
RecentlyUsedContainer = _collections.RecentlyUsedContainer
|
||||
CaseInsensitiveDict = structures.CaseInsensitiveDict
|
||||
RecentlyUsedContainer = _collections.RecentlyUsedContainer[_KT, _VT]
|
||||
CaseInsensitiveDict = structures.CaseInsensitiveDict[_VT]
|
||||
HTTPAdapter = adapters.HTTPAdapter
|
||||
requote_uri = utils.requote_uri
|
||||
get_environ_proxies = utils.get_environ_proxies
|
||||
|
||||
Reference in New Issue
Block a user