typeshed
typeshed copied to clipboard
Stubtest failures with Python 3.11.9+
Runs listed here: https://github.com/python/typeshed/actions/workflows/daily.yml
Python 3.11 only:
error: argparse._VersionAction.__init__ is inconsistent, runtime argument "help" has a default value of type None, which is incompatible with stub argument type builtins.str
Stub: in file stdlib/argparse.pyi:515
def (self: argparse._VersionAction, option_strings: typing.Sequence[builtins.str], version: Union[builtins.str, None] =, dest: builtins.str =, default: builtins.str =, help: builtins.str =)
Runtime: in file /opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/argparse.py:1128
def (self, option_strings, version=None, dest='==SUPPRESS==', default='==SUPPRESS==', help=None)
error: argparse._VersionAction.__init__ is inconsistent, runtime argument "help" has a default value of None, which is different from stub argument default "show program's version number and exit"
Stub: in file stdlib/argparse.pyi:515
def (self: argparse._VersionAction, option_strings: typing.Sequence[builtins.str], version: Union[builtins.str, None] =, dest: builtins.str =, default: builtins.str =, help: builtins.str =)
Runtime: in file /opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/argparse.py:1128
def (self, option_strings, version=None, dest='==SUPPRESS==', default='==SUPPRESS==', help=None)
error: importlib.metadata.MetadataPathFinder.invalidate_caches is inconsistent, runtime is a classmethod but stub is not
Stub: in file stdlib/importlib/metadata/__init__.pyi:[24](https://github.com/python/typeshed/actions/runs/8547175302/job/23418871970#step:5:25)5
def (cls: importlib.metadata.MetadataPathFinder)
Runtime: in file /opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/importlib/metadata/__init__.py:918
def ()
error: importlib.metadata.MetadataPathFinder.invalidate_caches is inconsistent, runtime does not have argument "cls"
Stub: in file stdlib/importlib/metadata/__init__.pyi:245
def (cls: importlib.metadata.MetadataPathFinder)
Runtime: in file /opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/importlib/metadata/__init__.py:918
def ()
error: logging.LoggerAdapter._log is inconsistent, runtime does not have argument "exc_info". Maybe you forgot to make it keyword-only in the stub?
Stub: in file stdlib/logging/__init__.pyi:461
def (self: logging.LoggerAdapter[_L`1], level: builtins.int, msg: builtins.object, args: Union[builtins.tuple[builtins.object, ...], typing.Mapping[builtins.str, builtins.object]], exc_info: Union[Union[None, builtins.bool, tuple[Type[builtins.BaseException], builtins.BaseException, Union[types.TracebackType, None]], tuple[None, None, None], builtins.BaseException], None] =, extra: Union[typing.Mapping[builtins.str, builtins.object], None] =, stack_info: builtins.bool =)
Runtime: in file /opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/logging/__init__.py:1913
def (self, level, msg, args, **kwargs)
error: logging.LoggerAdapter._log is inconsistent, runtime does not have argument "extra". Maybe you forgot to make it keyword-only in the stub?
Stub: in file stdlib/logging/__init__.pyi:461
def (self: logging.LoggerAdapter[_L`1], level: builtins.int, msg: builtins.object, args: Union[builtins.tuple[builtins.object, ...], typing.Mapping[builtins.str, builtins.object]], exc_info: Union[Union[None, builtins.bool, tuple[Type[builtins.BaseException], builtins.BaseException, Union[types.TracebackType, None]], tuple[None, None, None], builtins.BaseException], None] =, extra: Union[typing.Mapping[builtins.str, builtins.object], None] =, stack_info: builtins.bool =)
Runtime: in file /opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/logging/__init__.py:1913
def (self, level, msg, args, **kwargs)
error: logging.LoggerAdapter._log is inconsistent, runtime does not have argument "stack_info". Maybe you forgot to make it keyword-only in the stub?
Stub: in file stdlib/logging/__init__.pyi:461
def (self: logging.LoggerAdapter[_L`1], level: builtins.int, msg: builtins.object, args: Union[builtins.tuple[builtins.object, ...], typing.Mapping[builtins.str, builtins.object]], exc_info: Union[Union[None, builtins.bool, tuple[Type[builtins.BaseException], builtins.BaseException, Union[types.TracebackType, None]], tuple[None, None, None], builtins.BaseException], None] =, extra: Union[typing.Mapping[builtins.str, builtins.object], None] =, stack_info: builtins.bool =)
Runtime: in file /opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/logging/__init__.py:1913
def (self, level, msg, args, **kwargs)
error: pdb.Pdb.execRcLines is not present at runtime
Stub: in file stdlib/pdb.pyi:58
def (self: pdb.Pdb)
Runtime:
MISSING
error: pydoc.HTMLDoc.docdata is inconsistent, stub does not have *args argument "ignored"
Stub: in file stdlib/pydoc.pyi:147
def (self: pydoc.HTMLDoc, object: builtins.object, name: Union[builtins.str, None] =, mod: Union[Any, None] =, cl: Union[Any, None] =) -> builtins.str
Runtime: in file /opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/pydoc.py:1147
def (self, object, name=None, mod=None, cl=None, *ignored)
error: pydoc.HTMLDoc.docproperty is inconsistent, stub does not have *args argument "ignored"
Stub: in file stdlib/pydoc.pyi:145
def (self: pydoc.HTMLDoc, object: builtins.object, name: Union[builtins.str, None] =, mod: Union[builtins.str, None] =, cl: Union[Any, None] =) -> builtins.str
Runtime: in file /opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/pydoc.py:1147
def (self, object, name=None, mod=None, cl=None, *ignored)
error: pydoc.HTMLDoc.docroutine is inconsistent, stub does not have argument "homecls"
Stub: in file stdlib/pydoc.pyi:135
def (self: pydoc.HTMLDoc, object: builtins.object, name: Union[builtins.str, None] =, mod: Union[builtins.str, None] =, funcs: typing.Mapping[builtins.str, builtins.str] =, classes: typing.Mapping[builtins.str, builtins.str] =, methods: typing.Mapping[builtins.str, builtins.str] =, cl: Union[builtins.type, None] =) -> builtins.str
Runtime: in file /opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/pydoc.py:1058
def (self, object, name=None, mod=None, funcs={}, classes={}, methods={}, cl=None, homecls=None)
error: pydoc.HTMLDoc.parentlink is not present in stub
Stub: in file stdlib/pydoc.pyi
MISSING
Runtime: in file /opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/pydoc.py:671
def (self, object, modname)
error: pydoc.TextDoc.docdata is inconsistent, stub does not have *args argument "ignored"
Stub: in file stdlib/pydoc.pyi:172
def (self: pydoc.TextDoc, object: builtins.object, name: Union[builtins.str, None] =, mod: Union[builtins.str, None] =, cl: Union[Any, None] =) -> builtins.str
Runtime: in file /opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/pydoc.py:1597
def (self, object, name=None, mod=None, cl=None, *ignored)
error: pydoc.TextDoc.docmodule is inconsistent, stub does not have *args argument "ignored"
Stub: in file stdlib/pydoc.pyi:167
def (self: pydoc.TextDoc, object: builtins.object, name: Union[builtins.str, None] =, mod: Union[Any, None] =) -> builtins.str
Runtime: in file /opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/pydoc.py:1[25](https://github.com/python/typeshed/actions/runs/8547175302/job/23418871970#step:5:26)9
def (self, object, name=None, mod=None, *ignored)
error: pydoc.TextDoc.docother is inconsistent, stub argument "doc" is not keyword-only
Stub: in file stdlib/pydoc.pyi:173
def (self: pydoc.TextDoc, object: builtins.object, name: Union[builtins.str, None] =, mod: Union[builtins.str, None] =, parent: Union[builtins.str, None] =, maxlen: Union[builtins.int, None] =, doc: Union[Any, None] =) -> builtins.str
Runtime: in file /opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/pydoc.py:1613
def (self, object, name=None, mod=None, parent=None, *ignored, maxlen=None, doc=None)
error: pydoc.TextDoc.docother is inconsistent, stub argument "maxlen" is not keyword-only
Stub: in file stdlib/pydoc.pyi:173
def (self: pydoc.TextDoc, object: builtins.object, name: Union[builtins.str, None] =, mod: Union[builtins.str, None] =, parent: Union[builtins.str, None] =, maxlen: Union[builtins.int, None] =, doc: Union[Any, None] =) -> builtins.str
Runtime: in file /opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/pydoc.py:1613
def (self, object, name=None, mod=None, parent=None, *ignored, maxlen=None, doc=None)
error: pydoc.TextDoc.docproperty is inconsistent, stub does not have *args argument "ignored"
Stub: in file stdlib/pydoc.pyi:171
def (self: pydoc.TextDoc, object: builtins.object, name: Union[builtins.str, None] =, mod: Union[Any, None] =, cl: Union[Any, None] =) -> builtins.str
Runtime: in file /opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/pydoc.py:1597
def (self, object, name=None, mod=None, cl=None, *ignored)
error: pydoc.TextDoc.docroutine is inconsistent, stub does not have argument "homecls"
Stub: in file stdlib/pydoc.pyi:170
def (self: pydoc.TextDoc, object: builtins.object, name: Union[builtins.str, None] =, mod: Union[builtins.str, None] =, cl: Union[Any, None] =) -> builtins.str
Runtime: in file /opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/pydoc.py:1518
def (self, object, name=None, mod=None, cl=None, homecls=None)