mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-02 06:00:24 +08:00
Update mypy to 1.20.0 (#15588)
This commit is contained in:
@@ -6,13 +6,6 @@ authlib.jose.drafts._jwe_algorithms.ECDH1PUAlgorithm.description
|
||||
authlib.jose.drafts._jwe_algorithms.ECDH1PUAlgorithm.name
|
||||
authlib.jose.drafts._jwe_enc_cryptography.C20PEncAlgorithm.description
|
||||
authlib.jose.drafts._jwe_enc_cryptography.C20PEncAlgorithm.name
|
||||
authlib.jose.rfc7518.AESAlgorithm.description
|
||||
authlib.jose.rfc7518.AESAlgorithm.name
|
||||
authlib.jose.rfc7518.ECDHESAlgorithm.description
|
||||
authlib.jose.rfc7518.ECDHESAlgorithm.name
|
||||
authlib.jose.rfc7518.CBCHS2EncAlgorithm.CEK_SIZE
|
||||
authlib.jose.rfc7518.CBCHS2EncAlgorithm.description
|
||||
authlib.jose.rfc7518.CBCHS2EncAlgorithm.name
|
||||
authlib.jose.rfc7518.jwe_algs.AESAlgorithm.description
|
||||
authlib.jose.rfc7518.jwe_algs.AESAlgorithm.name
|
||||
authlib.jose.rfc7518.jwe_algs.AESGCMAlgorithm.description
|
||||
@@ -37,20 +30,6 @@ authlib.jose.rfc7518.jws_algs.RSAPSSAlgorithm.description
|
||||
authlib.jose.rfc7518.jws_algs.RSAPSSAlgorithm.name
|
||||
|
||||
# Methods whose *args and **kwargs arguments are added dynamically due to the @hooked decorator:
|
||||
authlib.oauth2.rfc6749.AuthorizationCodeGrant.create_token_response
|
||||
authlib.oauth2.rfc6749.AuthorizationCodeGrant.validate_token_request
|
||||
authlib.oauth2.rfc6749.AuthorizationEndpointMixin.validate_consent_request
|
||||
authlib.oauth2.rfc6749.ClientCredentialsGrant.create_token_response
|
||||
authlib.oauth2.rfc6749.ImplicitGrant.validate_authorization_request
|
||||
authlib.oauth2.rfc6749.RefreshTokenGrant.create_token_response
|
||||
authlib.oauth2.rfc6749.ResourceOwnerPasswordCredentialsGrant.create_token_response
|
||||
authlib.oauth2.rfc6749.grants.AuthorizationCodeGrant.create_token_response
|
||||
authlib.oauth2.rfc6749.grants.AuthorizationCodeGrant.validate_token_request
|
||||
authlib.oauth2.rfc6749.grants.AuthorizationEndpointMixin.validate_consent_request
|
||||
authlib.oauth2.rfc6749.grants.ClientCredentialsGrant.create_token_response
|
||||
authlib.oauth2.rfc6749.grants.ImplicitGrant.validate_authorization_request
|
||||
authlib.oauth2.rfc6749.grants.RefreshTokenGrant.create_token_response
|
||||
authlib.oauth2.rfc6749.grants.ResourceOwnerPasswordCredentialsGrant.create_token_response
|
||||
authlib.oauth2.rfc6749.grants.authorization_code.AuthorizationCodeGrant.create_token_response
|
||||
authlib.oauth2.rfc6749.grants.authorization_code.AuthorizationCodeGrant.validate_token_request
|
||||
authlib.oauth2.rfc6749.grants.base.AuthorizationEndpointMixin.validate_consent_request
|
||||
@@ -58,10 +37,7 @@ authlib.oauth2.rfc6749.grants.client_credentials.ClientCredentialsGrant.create_t
|
||||
authlib.oauth2.rfc6749.grants.implicit.ImplicitGrant.validate_authorization_request
|
||||
authlib.oauth2.rfc6749.grants.refresh_token.RefreshTokenGrant.create_token_response
|
||||
authlib.oauth2.rfc6749.grants.resource_owner_password_credentials.ResourceOwnerPasswordCredentialsGrant.create_token_response
|
||||
authlib.oauth2.rfc8628.DeviceCodeGrant.create_token_response
|
||||
authlib.oauth2.rfc8628.device_code.DeviceCodeGrant.create_token_response
|
||||
authlib.oidc.core.OpenIDImplicitGrant.validate_consent_request
|
||||
authlib.oidc.core.grants.OpenIDImplicitGrant.validate_consent_request
|
||||
authlib.oidc.core.grants.implicit.OpenIDImplicitGrant.validate_consent_request
|
||||
|
||||
# Exclude integrations dirs
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
# private attributes / methods, not present in docs
|
||||
flask_socketio.SocketIOTestClient.clients
|
||||
flask_socketio.test_client.SocketIOTestClient.clients
|
||||
flask_socketio.gevent_socketio_found
|
||||
flask_socketio.call
|
||||
|
||||
@@ -2,48 +2,11 @@
|
||||
# =============================
|
||||
# This is hack to get around Field.__new__ not being able to return
|
||||
# UnboundField
|
||||
wtforms.Field.__get__
|
||||
wtforms.fields.Field.__get__
|
||||
wtforms.fields.core.Field.__get__
|
||||
# Since DefaultMeta can contain arbitrary values we added __getattr__
|
||||
# to let mypy know that arbitrary attribute access is possible
|
||||
wtforms.meta.DefaultMeta.__getattr__
|
||||
|
||||
# Should allow setting and deleting any attribute
|
||||
wtforms.Flags.__delattr__
|
||||
wtforms.Flags.__setattr__
|
||||
wtforms.fields.Flags.__delattr__
|
||||
wtforms.fields.Flags.__setattr__
|
||||
wtforms.fields.core.Flags.__delattr__
|
||||
wtforms.fields.core.Flags.__setattr__
|
||||
|
||||
# Error: variable differs from runtime
|
||||
# ======================
|
||||
# _unbound_fields has some weird semantics: due to the metaclass it
|
||||
# will be None until the form class has been instantiated at least
|
||||
# once and then will stick around until someone adds a new field
|
||||
# to the class, which clears it back to None. Which means on instances
|
||||
# it will always be there and on the class it depends, so maybe this
|
||||
# should use a dummy descriptor? For now we just pretend it's set.
|
||||
# The behavior is documented in FormMeta, so I think it's fine.
|
||||
wtforms.Form._unbound_fields
|
||||
wtforms.form.Form._unbound_fields
|
||||
|
||||
# widget is both used as a ClassVar and instance variable and does
|
||||
# not necessarily reflect an upper bound on Widget, so we always use
|
||||
# our Widget Protocol definition that's contravariant on Self
|
||||
wtforms.Field.widget
|
||||
wtforms.FormField.widget
|
||||
wtforms.SelectField.widget
|
||||
wtforms.SelectMultipleField.widget
|
||||
wtforms.TextAreaField.widget
|
||||
wtforms.fields.Field.widget
|
||||
wtforms.fields.FormField.widget
|
||||
wtforms.fields.SelectField.widget
|
||||
wtforms.fields.SelectMultipleField.widget
|
||||
wtforms.fields.TextAreaField.widget
|
||||
wtforms.fields.choices.SelectField.widget
|
||||
wtforms.fields.choices.SelectMultipleField.widget
|
||||
wtforms.fields.core.Field.widget
|
||||
wtforms.fields.form.FormField.widget
|
||||
wtforms.fields.simple.TextAreaField.widget
|
||||
|
||||
@@ -95,7 +95,6 @@ webob.response.ResponseBodyFile.close
|
||||
# Error: is inconsistent
|
||||
# ======================
|
||||
# set_cookie has a deprecated argument `expires` which has been removed upstream
|
||||
webob.Response.set_cookie
|
||||
webob.response.Response.set_cookie
|
||||
|
||||
# These are here due to the slightly more strict nature of the type annotation
|
||||
|
||||
@@ -5,6 +5,3 @@ auth0\.test.*
|
||||
# The way these stubs are currently implemented is that we pretend all classes have async methods
|
||||
# Even though in reality, users need to call `auth0.asyncify.asyncify` to generate async subclasses
|
||||
auth0\..*_async
|
||||
|
||||
# Inconsistently implemented, ommitted
|
||||
auth0\.management\.Auth0\..*
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
# additional requirements are needed, e.g. win32 apis
|
||||
docker.transport.NpipeHTTPAdapter
|
||||
docker.transport.NpipeSocket
|
||||
docker.transport.SSHHTTPAdapter
|
||||
docker.transport.npipeconn
|
||||
docker.transport.npipesocket
|
||||
docker.transport.sshconn
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
# These are methods and attributes that really should have been
|
||||
# prefixed with a `_`, since they should only really be used
|
||||
# internally
|
||||
fanstatic.Library.init_library_nr
|
||||
fanstatic.core.Asset.init_dependency_nr
|
||||
fanstatic.core.Library.init_library_nr
|
||||
|
||||
@@ -22,9 +21,6 @@ fanstatic.compiler.mtime
|
||||
# should really be abstract and instead defines some attributes as
|
||||
# None, even though all subclasses populate them, so these have been
|
||||
# made abstract to make defining correct subclasses more easy
|
||||
fanstatic.Group.depends
|
||||
fanstatic.Group.resources
|
||||
fanstatic.Group.supports
|
||||
fanstatic.core.Asset.depends
|
||||
fanstatic.core.Asset.resources
|
||||
fanstatic.core.Asset.supports
|
||||
@@ -38,11 +34,6 @@ fanstatic.core.Group.supports
|
||||
# The API for Compiler has very much the same problem, so these are
|
||||
# some more attributes/methods that have been made abstract for the
|
||||
# purposes of type checking
|
||||
fanstatic.Compiler.name
|
||||
fanstatic.Compiler.source_extension
|
||||
fanstatic.Minifier.name
|
||||
fanstatic.Minifier.source_extension
|
||||
fanstatic.Minifier.target_extension
|
||||
fanstatic.compiler.CommandlineBase.command
|
||||
fanstatic.compiler.Compiler.name
|
||||
fanstatic.compiler.Compiler.source_extension
|
||||
@@ -55,7 +46,6 @@ fanstatic.registry.Registry.ENTRY_POINT
|
||||
# This is only inconsistent because the library authors set this
|
||||
# attribute to `None` on the class, so they could assign a docstring
|
||||
# to it. `__init__` will always populate this attribute with a `str`
|
||||
fanstatic.Library.path
|
||||
fanstatic.core.Library.path
|
||||
|
||||
# Error: variable differs from runtime type
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
# Argument has default at runtime, but using it raises a TypeError.
|
||||
fpdf.FPDF.set_creation_date
|
||||
fpdf.fpdf.FPDF.set_creation_date
|
||||
|
||||
# fonttools shims since we can't import it
|
||||
|
||||
@@ -14,6 +14,11 @@ geopandas\.(geodataframe\.)?GeoDataFrame\.plot
|
||||
geopandas\.io\._geoarrow
|
||||
geopandas\._exports
|
||||
|
||||
# stub parameter differs from runtime parameter "self"
|
||||
geopandas.geodataframe.GeoDataFrame.explore
|
||||
geopandas.geoseries.GeoSeries.explore
|
||||
geopandas.geoseries.GeoSeries.plot
|
||||
|
||||
# Inconsistent (TODO)
|
||||
geopandas\.(geoseries\.)?GeoSeries\.apply
|
||||
geopandas\.(geoseries\.)?GeoSeries\.fillna
|
||||
|
||||
@@ -52,22 +52,6 @@ gevent.pywsgi.Environ.iteritems
|
||||
# it's not necessary for public API
|
||||
gevent.hub.Waiter.switch_args
|
||||
|
||||
# these may be gevent extensions or methods for backwards compatibility
|
||||
# for now we're fine with pretending it's not there
|
||||
gevent.socket.SocketType.__enter__
|
||||
gevent.socket.SocketType.__exit__
|
||||
gevent.socket.SocketType.accept
|
||||
gevent.socket.SocketType.closed
|
||||
gevent.socket.SocketType.dup
|
||||
gevent.socket.SocketType.get_inheritable
|
||||
gevent.socket.SocketType.makefile
|
||||
gevent.socket.SocketType.sendfile
|
||||
gevent.socket.SocketType.set_inheritable
|
||||
|
||||
# Pretends to re-export a type marked @disjoint_base in the stubs, but runtime
|
||||
# defines __slots__
|
||||
gevent.socket.SocketType$
|
||||
|
||||
# zope.interface related attributes we can ignore
|
||||
gevent.[\w\.]+\.__implemented__
|
||||
gevent.[\w\.]+\.__providedBy__
|
||||
@@ -84,22 +68,6 @@ gevent.ssl.os
|
||||
gevent.ssl.warnings
|
||||
gevent\.subprocess\._[A-Za-z0-9]\w*
|
||||
|
||||
# gevent implements its own Popen which doesn't completely match the original
|
||||
# API, for now we ignore this discrepancy
|
||||
gevent.subprocess.Popen.rawlink
|
||||
gevent.subprocess.Popen.__del__
|
||||
|
||||
# Error: is not present at runtime
|
||||
# =============================
|
||||
# Due to the way gevent copies globals from other modules, there's a few symbols
|
||||
# that may not end up in the module, that would otherwise end up there with a
|
||||
# `from x import *`. None of these seem critical, so we ignore them. For socket
|
||||
# we ignore all constants that start with at least one segment of all uppercase
|
||||
# letters before the underscore
|
||||
gevent\.socket\.[A-Z0-9]+(_\w+)?
|
||||
gevent.ssl.PROTOCOL_SSLv2
|
||||
gevent.ssl.PROTOCOL_SSLv3
|
||||
|
||||
# Error: differs from runtime type
|
||||
# ======================
|
||||
# these are None in the base class, but all settings are a subclass
|
||||
@@ -140,9 +108,6 @@ gevent._abstract_linkable.AbstractLinkable.rawlink
|
||||
gevent._abstract_linkable.AbstractLinkable.unlink
|
||||
|
||||
# removed undocumented arguments for internal use
|
||||
gevent.Greenlet.link
|
||||
gevent.Greenlet.link_exception
|
||||
gevent.Greenlet.link_value
|
||||
gevent.greenlet.Greenlet.link
|
||||
gevent.greenlet.Greenlet.link_exception
|
||||
gevent.greenlet.Greenlet.link_value
|
||||
@@ -158,36 +123,7 @@ gevent.pywsgi.WSGIHandler.__init__
|
||||
# we're fine with holding the geven implemenation to the same restrictions
|
||||
# additionally there's some functions with additional optional arguments, that
|
||||
# we are fine with ignoring for now as well
|
||||
gevent.socket.SocketType.bind
|
||||
gevent.socket.SocketType.connect
|
||||
gevent.socket.SocketType.connect_ex
|
||||
gevent.socket.SocketType.send
|
||||
gevent.socket.SocketType.sendall
|
||||
gevent.socket.SocketType.setblocking
|
||||
gevent.socket.SocketType.settimeout
|
||||
gevent.socket.SocketType.shutdown
|
||||
gevent.socket.cancel_wait
|
||||
gevent.socket.gethostbyaddr
|
||||
gevent.socket.gethostbyname
|
||||
gevent.socket.gethostbyname_ex
|
||||
gevent.socket.getnameinfo
|
||||
gevent.socket.socket.closed
|
||||
gevent.socket.wait_readwrite
|
||||
gevent.socket.wait_write
|
||||
gevent.socket.socket.__slots__
|
||||
|
||||
# we have punted on ssl, the gevent version of these functions have an additional
|
||||
# argument for timeouts/blocking and there are some with different default values
|
||||
# for nbytes/length, for now we ignore that fact
|
||||
gevent.ssl.SSLSocket.__init__
|
||||
gevent.ssl.SSLSocket.do_handshake
|
||||
gevent.ssl.SSLSocket.read
|
||||
gevent.ssl.SSLSocket.send
|
||||
gevent.ssl.get_server_certificate
|
||||
|
||||
# we have punted on subprocess, the gevent version has slightly different arguments
|
||||
# for now we ignore that fact, most of the ways to call Popen should be compatible
|
||||
gevent.subprocess.Popen.__init__
|
||||
|
||||
# gevent overwrites with a named parameter for fd, but we're fine with only
|
||||
# supporting the API of the superclass
|
||||
|
||||
@@ -3,10 +3,6 @@
|
||||
# internal API stuff we dropped because it wasn't necessary
|
||||
gevent.libev.corecext.loop.async
|
||||
|
||||
# these shouldn't be in __all__ they end up there, due to how gevent imports
|
||||
# the globals from the stdlib ssl module
|
||||
gevent.subprocess.Popen.pipe_cloexec
|
||||
|
||||
# Error: is inconsistent
|
||||
# ======================
|
||||
# these are inconsistent due to the ParamSpec hack for positional only callables
|
||||
@@ -16,14 +12,3 @@ gevent.libev.watcher.watcher.feed
|
||||
|
||||
# undocumented argument for internal use only
|
||||
gevent.libev.watcher.watcher.__init__
|
||||
|
||||
|
||||
# we have punted on socket, the gevent version of these functions sometimes use
|
||||
# named parameters, while the base implementation only allows positional arguments
|
||||
# we're fine with holding the geven implemenation to the same restrictions
|
||||
# additionally there's some functions with additional optional arguments, that
|
||||
# we are fine with ignoring for now as well
|
||||
gevent.socket.SocketType.recvmsg_into
|
||||
gevent.socket.SocketType.sendmsg
|
||||
gevent.socket.socket.recvmsg_into
|
||||
gevent.socket.socket.sendmsg
|
||||
|
||||
@@ -3,17 +3,6 @@
|
||||
# internal API stuff we dropped because it wasn't necessary
|
||||
gevent.libev.corecext.loop.async
|
||||
|
||||
# these shouldn't be in __all__ they end up there, due to how gevent imports
|
||||
# the globals from the stdlib ssl module
|
||||
gevent.subprocess.Popen.pipe_cloexec
|
||||
gevent.subprocess.Popen.rawlink
|
||||
|
||||
# Error: is not present at runtime
|
||||
# =============================
|
||||
# this is currently missing from the gevent implementation, but we'll ignore
|
||||
# it for simplicity's sake
|
||||
gevent.socket.SocketType.sendmsg_afalg
|
||||
|
||||
# Error: is inconsistent
|
||||
# ======================
|
||||
# these are inconsistent due to the ParamSpec hack for positional only callables
|
||||
@@ -23,14 +12,3 @@ gevent.libev.watcher.watcher.feed
|
||||
|
||||
# undocumented argument for internal use only
|
||||
gevent.libev.watcher.watcher.__init__
|
||||
|
||||
|
||||
# we have punted on socket, the gevent version of these functions sometimes use
|
||||
# named parameters, while the base implementation only allows positional arguments
|
||||
# we're fine with holding the geven implemenation to the same restrictions
|
||||
# additionally there's some functions with additional optional arguments, that
|
||||
# we are fine with ignoring for now as well
|
||||
gevent.socket.SocketType.recvmsg_into
|
||||
gevent.socket.SocketType.sendmsg
|
||||
gevent.socket.socket.recvmsg_into
|
||||
gevent.socket.socket.sendmsg
|
||||
|
||||
@@ -6,9 +6,6 @@ gevent.signal.getsignal
|
||||
gevent.signal.signal
|
||||
gevent.signal.set_wakeup_fd
|
||||
|
||||
# these don't exist on win32 in stdlib, but they do in gevent, for now we ignore them
|
||||
gevent.socket.SocketType.share
|
||||
|
||||
# the docs say this doesn't work on windows, so it has been removed
|
||||
gevent._ffi.loop.AbstractLoop.fork
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
# inconsistency of signatures between stub and implementation (cls vs self)
|
||||
google.cloud.ndb.ModelAdapter.__new__
|
||||
google.cloud.ndb.metadata.EntityGroup.__new__
|
||||
google.cloud.ndb.model.ModelAdapter.__new__
|
||||
|
||||
@@ -5,9 +5,7 @@ icalendar.cli
|
||||
icalendar\.tests(\..*)?
|
||||
|
||||
# Methods that use `int` to mean `bool`.
|
||||
icalendar.Component.get_inline
|
||||
icalendar.cal.Component.get_inline
|
||||
|
||||
# Stubtest gets confused by multiple inheritance.
|
||||
icalendar.prop.vSkip.__new__
|
||||
icalendar.vSkip.__new__
|
||||
|
||||
@@ -10,14 +10,6 @@ jsonschema.__main__
|
||||
.*\.__attrs_own_setattr__
|
||||
.*\.__attrs_post_init__
|
||||
.*\.__attrs_props__
|
||||
jsonschema.Draft201909Validator.__match_args__
|
||||
jsonschema.Draft202012Validator.__match_args__
|
||||
jsonschema.Draft3Validator.__match_args__
|
||||
jsonschema.Draft4Validator.__match_args__
|
||||
jsonschema.Draft6Validator.__match_args__
|
||||
jsonschema.Draft7Validator.__match_args__
|
||||
jsonschema.RefResolutionError.__match_args__
|
||||
jsonschema.TypeChecker.__match_args__
|
||||
jsonschema._types.TypeChecker.__match_args__
|
||||
jsonschema.cli._Outputter.__match_args__
|
||||
jsonschema.cli._PlainFormatter.__match_args__
|
||||
@@ -30,14 +22,6 @@ jsonschema.validators.Draft4Validator.__match_args__
|
||||
jsonschema.validators.Draft6Validator.__match_args__
|
||||
jsonschema.validators.Draft7Validator.__match_args__
|
||||
# >= Python 3.13
|
||||
jsonschema.Draft201909Validator.__replace__
|
||||
jsonschema.Draft202012Validator.__replace__
|
||||
jsonschema.Draft3Validator.__replace__
|
||||
jsonschema.Draft4Validator.__replace__
|
||||
jsonschema.Draft6Validator.__replace__
|
||||
jsonschema.Draft7Validator.__replace__
|
||||
jsonschema.RefResolutionError.__replace__
|
||||
jsonschema.TypeChecker.__replace__
|
||||
jsonschema._types.TypeChecker.__replace__
|
||||
jsonschema.cli._Outputter.__replace__
|
||||
jsonschema.cli._PlainFormatter.__replace__
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
# scan_code *should* never be None in real use. This is also according to docs.
|
||||
keyboard.KeyboardEvent.scan_code
|
||||
keyboard._keyboard_event.KeyboardEvent.scan_code
|
||||
# TODO: Should this be allowlisted?
|
||||
keyboard.__main__
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
mock.patch
|
||||
mock.mock.patch
|
||||
|
||||
# Uses `_timeout_unset` sentinel:
|
||||
mock.mock.ThreadingMixin.__init__
|
||||
mock.mock.ThreadingMixin.wait_until_called
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
MySQLdb.Connection
|
||||
@@ -8,10 +8,6 @@ openpyxl.descriptors.DEBUG
|
||||
# The actual runtime definition depends on what else is installed
|
||||
# (lxml, defusedxml, et_xmlfile)
|
||||
openpyxl.xml._functions_overloads
|
||||
openpyxl.xml.functions.Element.__iter__
|
||||
openpyxl.xml.functions.fromstring
|
||||
openpyxl.xml.functions.iterparse
|
||||
openpyxl.xml.functions.tostring
|
||||
|
||||
# Requires numpy to be installed
|
||||
openpyxl.utils.dataframe
|
||||
@@ -41,10 +37,8 @@ openpyxl\.descriptors\.(base\.)?Typed\.allow_none
|
||||
# Inconsistent methods because
|
||||
# - using the default value results in an error because of the runtime type-guards
|
||||
# - or, keyword arguments are explicitly specified
|
||||
openpyxl.cell.Cell.__init__
|
||||
openpyxl.cell.cell.Cell.__init__
|
||||
openpyxl.cell.cell.WriteOnlyCell
|
||||
openpyxl.cell.WriteOnlyCell
|
||||
openpyxl.cell.text.PhoneticProperties.__init__
|
||||
openpyxl.cell.text.PhoneticText.__init__
|
||||
openpyxl.chart.axis._BaseAxis.__init__
|
||||
|
||||
@@ -3,5 +3,4 @@
|
||||
pika.spec.Queue.DeclareOk.__init__
|
||||
|
||||
# Arguments have a sentinel default, which is not reflected in the stubs.
|
||||
pika.ConnectionParameters.__init__
|
||||
pika.connection.ConnectionParameters.__init__
|
||||
|
||||
@@ -8,6 +8,3 @@ psutil._pssunos
|
||||
psutil._psutil_aix
|
||||
psutil._psutil_bsd
|
||||
psutil._psutil_sunos
|
||||
|
||||
# process_iter is enhanced with cache_clear method that's not detected by stubtest
|
||||
psutil.process_iter
|
||||
|
||||
@@ -5,12 +5,6 @@ jks.jks.PrivateKeyEntry.pkey_pkcs8
|
||||
jks.jks.SecretKeyEntry.algorithm
|
||||
jks.jks.SecretKeyEntry.key
|
||||
jks.jks.SecretKeyEntry.key_size
|
||||
jks.PrivateKeyEntry.algorithm_oid
|
||||
jks.PrivateKeyEntry.pkey
|
||||
jks.PrivateKeyEntry.pkey_pkcs8
|
||||
jks.SecretKeyEntry.algorithm
|
||||
jks.SecretKeyEntry.key
|
||||
jks.SecretKeyEntry.key_size
|
||||
|
||||
# Implicit imports, not re-exported
|
||||
jks.DSA_OID
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
# These __init__ methods have *args, **kwargs arguments on some platforms, but not others
|
||||
pynput.mouse.Controller.__init__
|
||||
|
||||
# Platform specific private utils:
|
||||
pynput._util.xorg_keysyms
|
||||
pynput._util.xorg
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
# These __init__ methods have *args, **kwargs arguments on some platforms, but not others
|
||||
pynput.keyboard.Controller.__init__
|
||||
|
||||
# To reduce duplication, our stubs simplify things:
|
||||
# the runtime has several Controller classes,
|
||||
# some of which have __del__ methods on linux, and some of which don't.
|
||||
pynput.mouse.Controller.__del__
|
||||
pynput.keyboard.Controller.__del__
|
||||
|
||||
# Platform specific implementation detail:
|
||||
pynput.keyboard.Controller.keyboard_mapping
|
||||
@@ -1,2 +0,0 @@
|
||||
# These __init__ methods have *args, **kwargs arguments on some platforms, but not others
|
||||
pynput.keyboard.Controller.__init__
|
||||
@@ -8,14 +8,11 @@ serial.serialjava # No Java Communications API implementation found
|
||||
# ======================
|
||||
# These are positional only argument in the stub because they inherit from io.RawIOBase
|
||||
# but at runtime they are normal arguments that don't have consistent names.
|
||||
serial.Serial.write
|
||||
serial.SerialBase.readinto
|
||||
serial.serialutil.SerialBase.readinto
|
||||
serial.rfc2217.Serial.write
|
||||
serial.rs485.RS485.write
|
||||
serial.urlhandler.protocol_cp2110.Serial.write
|
||||
serial.urlhandler.protocol_loop.Serial.write
|
||||
serial.urlhandler.protocol_rfc2217.Serial.write
|
||||
serial.urlhandler.protocol_socket.Serial.write
|
||||
serial.urlhandler.protocol_spy.Serial.write
|
||||
|
||||
@@ -33,22 +30,6 @@ serial.tools.miniterm.unichr
|
||||
serial.urlhandler.protocol_hwgrep.basestring
|
||||
|
||||
# Deprecated aliases
|
||||
serial.SerialBase.applySettingsDict
|
||||
serial.SerialBase.flushInput
|
||||
serial.SerialBase.flushOutput
|
||||
serial.SerialBase.getCD
|
||||
serial.SerialBase.getCTS
|
||||
serial.SerialBase.getDSR
|
||||
serial.SerialBase.getRI
|
||||
serial.SerialBase.getSettingsDict
|
||||
serial.SerialBase.inWaiting
|
||||
serial.SerialBase.interCharTimeout
|
||||
serial.SerialBase.isOpen
|
||||
serial.SerialBase.sendBreak
|
||||
serial.SerialBase.setDTR
|
||||
serial.SerialBase.setPort
|
||||
serial.SerialBase.setRTS
|
||||
serial.SerialBase.writeTimeout
|
||||
serial.serialutil.SerialBase.applySettingsDict
|
||||
serial.serialutil.SerialBase.flushInput
|
||||
serial.serialutil.SerialBase.flushOutput
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
dateutil.rrule.weekday.__init__
|
||||
dateutil.tz.tz.tzoffset.instance
|
||||
dateutil.tz.tz.tzstr.instance
|
||||
dateutil.tz.tzoffset.instance
|
||||
dateutil.tz.tzstr.instance
|
||||
|
||||
# Metaclass differs:
|
||||
dateutil.tz.tzoffset
|
||||
dateutil.tz.tzutc
|
||||
dateutil.tz.tz.tzoffset
|
||||
dateutil.tz.tz.tzutc
|
||||
|
||||
@@ -1,6 +1 @@
|
||||
jose.backends.cryptography_backend
|
||||
jose.backends.CryptographyAESKey
|
||||
jose.backends.CryptographyECKey
|
||||
jose.backends.CryptographyHMACKey
|
||||
jose.backends.CryptographyRSAKey
|
||||
jose.backends.ECDSAECKey
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
# "Abstract" methods, see the .pyi file for more details.
|
||||
pytz.BaseTzInfo.localize
|
||||
pytz.BaseTzInfo.normalize
|
||||
pytz.tzinfo.BaseTzInfo.localize
|
||||
pytz.tzinfo.BaseTzInfo.normalize
|
||||
|
||||
@@ -3,5 +3,4 @@
|
||||
# While the method provides default values for all arguments, the first two
|
||||
# arguments always need to be provided, so it makes no sense to pretend that
|
||||
# they are optional
|
||||
qrbill.QRBill.__init__
|
||||
qrbill.bill.QRBill.__init__
|
||||
|
||||
@@ -8,7 +8,6 @@ qrcode\.tests\..*
|
||||
qrcode._types
|
||||
|
||||
# Parameter "data" has unhelpful default value, which creates a QR code with string "None".
|
||||
qrcode\.make
|
||||
qrcode\.main\.make
|
||||
|
||||
# Implementation has marked these methods as abstract without the class
|
||||
|
||||
@@ -41,7 +41,6 @@ reportlab.platypus.flowables._ContainerSpace.getSpaceBefore
|
||||
|
||||
# this has an internal __boundary__ argument which confuses stubtest
|
||||
# we've decided to just get rid of the argument in the stub entirely
|
||||
reportlab.platypus.Frame.drawBoundary
|
||||
reportlab.platypus.frames.Frame.drawBoundary
|
||||
|
||||
# this is just a case-insenstive version of dict and changes in parameter
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
# Is a functools.partial, so stubtest says "is not a function"
|
||||
setuptools.modified.newer_pairwise_group
|
||||
setuptools._distutils._modified.newer_pairwise_group
|
||||
|
||||
# Runtime initializes to None, but this really should never be None when used
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
# Speedups (C vs Python inconsistency):
|
||||
simplejson.scanner.make_scanner
|
||||
simplejson.scanner.JSONDecodeError.__init__
|
||||
simplejson.JSONDecodeError.__init__
|
||||
simplejson.encoder.c_make_encoder
|
||||
simplejson.encoder.c_encode_basestring_ascii
|
||||
simplejson.encoder.py_encode_basestring_ascii
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
# Inconsistency because some params being between *args and **kwargs:
|
||||
ttkthemes.ThemedStyle.__init__
|
||||
ttkthemes.ThemedTk.__init__
|
||||
ttkthemes.themed_style.ThemedStyle.__init__
|
||||
ttkthemes.themed_tk.ThemedTk.__init__
|
||||
|
||||
@@ -26,3 +26,6 @@ yt_dlp.utils.(_utils.)?prepend_extension
|
||||
yt_dlp.utils.(_utils.)?replace_extension
|
||||
# Unsure why this is here.
|
||||
yt_dlp.utils.jslib.devalue.TYPE_CHECKING
|
||||
|
||||
# Stubtest weirdness
|
||||
yt_dlp.utils._utils.preferredencoding
|
||||
|
||||
Reference in New Issue
Block a user