mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Fix and allow classes with missing metaclasses (#9136)
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -57,3 +57,7 @@ aiofiles.tempfile.temptypes.AsyncSpooledTemporaryFile.isatty
|
||||
aiofiles.tempfile.temptypes.AsyncSpooledTemporaryFile.rollover
|
||||
aiofiles.tempfile.temptypes.AsyncSpooledTemporaryFile.tell
|
||||
aiofiles.tempfile.temptypes.AsyncTemporaryDirectory.cleanup
|
||||
|
||||
# Metaclass differs:
|
||||
aiofiles.base.AiofilesContextManager
|
||||
aiofiles.tempfile.AiofilesContextManagerTempDir
|
||||
|
||||
@@ -1,2 +1,6 @@
|
||||
version = "3.3.*"
|
||||
obsolete_since = "3.4.4"
|
||||
|
||||
[tool.stubtest]
|
||||
# See https://github.com/python/typeshed/issues/9127
|
||||
skip = true
|
||||
|
||||
3
stubs/invoke/@tests/stubtest_allowlist.txt
Normal file
3
stubs/invoke/@tests/stubtest_allowlist.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
# Metaclass differs:
|
||||
invoke.parser.ParseMachine
|
||||
invoke.parser.parser.ParseMachine
|
||||
@@ -16,6 +16,6 @@ def signature(*arguments: _Signature) -> Callable[[_F], _F]: ...
|
||||
class FunctionRegistry(type):
|
||||
def __init__(cls, name, bases, attrs) -> None: ...
|
||||
|
||||
class Functions:
|
||||
class Functions(metaclass=FunctionRegistry):
|
||||
FUNCTION_TABLE: Any
|
||||
def call_function(self, function_name, resolved_args): ...
|
||||
|
||||
@@ -1546,7 +1546,7 @@ class _BoundModelsContext(_callable_context_manager):
|
||||
def __enter__(self): ...
|
||||
def __exit__(self, exc_type, exc_val, exc_tb) -> None: ...
|
||||
|
||||
class Model:
|
||||
class Model(metaclass=ModelBase):
|
||||
__data__: Incomplete
|
||||
__rel__: Incomplete
|
||||
def __init__(self, *args, **kwargs) -> None: ...
|
||||
|
||||
@@ -33,3 +33,6 @@ google.protobuf.descriptor.ServiceDescriptor.__new__
|
||||
# Set to None at runtime - which doesn't match the Sequence base class.
|
||||
# It's a hack - just allow it.
|
||||
google.protobuf.internal.containers.BaseContainer.__hash__
|
||||
|
||||
# Metaclass differs:
|
||||
google.protobuf.descriptor.OneofDescriptor
|
||||
|
||||
@@ -5,3 +5,9 @@ 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
|
||||
|
||||
@@ -16,3 +16,58 @@ redis.asyncio.sentinel.Sentinel.master_for
|
||||
redis.asyncio.sentinel.Sentinel.slave_for
|
||||
redis.sentinel.Sentinel.master_for
|
||||
redis.sentinel.Sentinel.slave_for
|
||||
|
||||
# Metaclass differs:
|
||||
redis.RedisCluster
|
||||
redis.asyncio.Redis
|
||||
redis.asyncio.client.MonitorCommandInfo
|
||||
redis.asyncio.client.Pipeline
|
||||
redis.asyncio.client.Redis
|
||||
redis.asyncio.connection.ConnectKwargs
|
||||
redis.client.Pipeline
|
||||
redis.client.Redis
|
||||
redis.cluster.ClusterPipeline
|
||||
redis.cluster.RedisCluster
|
||||
redis.commands.AsyncCoreCommands
|
||||
redis.commands.CoreCommands
|
||||
redis.commands.RedisClusterCommands
|
||||
redis.commands.cluster.ClusterDataAccessCommands
|
||||
redis.commands.cluster.ClusterManagementCommands
|
||||
redis.commands.cluster.ClusterMultiKeyCommands
|
||||
redis.commands.cluster.RedisClusterCommands
|
||||
redis.commands.core.ACLCommands
|
||||
redis.commands.core.AsyncACLCommands
|
||||
redis.commands.core.AsyncBasicKeyCommands
|
||||
redis.commands.core.AsyncClusterCommands
|
||||
redis.commands.core.AsyncCoreCommands
|
||||
redis.commands.core.AsyncDataAccessCommands
|
||||
redis.commands.core.AsyncGeoCommands
|
||||
redis.commands.core.AsyncHashCommands
|
||||
redis.commands.core.AsyncHyperlogCommands
|
||||
redis.commands.core.AsyncListCommands
|
||||
redis.commands.core.AsyncManagementCommands
|
||||
redis.commands.core.AsyncModuleCommands
|
||||
redis.commands.core.AsyncPubSubCommands
|
||||
redis.commands.core.AsyncScanCommands
|
||||
redis.commands.core.AsyncScriptCommands
|
||||
redis.commands.core.AsyncSetCommands
|
||||
redis.commands.core.AsyncSortedSetCommands
|
||||
redis.commands.core.AsyncStreamCommands
|
||||
redis.commands.core.BasicKeyCommands
|
||||
redis.commands.core.ClusterCommands
|
||||
redis.commands.core.CoreCommands
|
||||
redis.commands.core.DataAccessCommands
|
||||
redis.commands.core.GeoCommands
|
||||
redis.commands.core.HashCommands
|
||||
redis.commands.core.HyperlogCommands
|
||||
redis.commands.core.ListCommands
|
||||
redis.commands.core.ManagementCommands
|
||||
redis.commands.core.ModuleCommands
|
||||
redis.commands.core.PubSubCommands
|
||||
redis.commands.core.ScanCommands
|
||||
redis.commands.core.ScriptCommands
|
||||
redis.commands.core.SetCommands
|
||||
redis.commands.core.SortedSetCommands
|
||||
redis.commands.core.StreamCommands
|
||||
redis.commands.json.Pipeline
|
||||
redis.commands.timeseries.Pipeline
|
||||
|
||||
@@ -38,3 +38,6 @@ requests.packages.target
|
||||
requests.charset_normalizer_version
|
||||
requests.chardet_version
|
||||
requests.utils.HEADER_VALIDATORS
|
||||
|
||||
# Metaclass differs:
|
||||
requests.adapters.Retry
|
||||
|
||||
@@ -1 +1,5 @@
|
||||
tqdm.contrib.discord
|
||||
|
||||
# Metaclass differs:
|
||||
tqdm.rich.FractionColumn
|
||||
tqdm.rich.RateColumn
|
||||
|
||||
@@ -28,3 +28,6 @@ urllib3.util.connection.poll
|
||||
urllib3.util.connection.select
|
||||
urllib3.util.ssl_.create_default_context
|
||||
urllib3.util.ssl_.ssl_wrap_socket
|
||||
|
||||
# Metaclass differs:
|
||||
urllib3.util.retry.Retry
|
||||
|
||||
Reference in New Issue
Block a user