typeshed icon indicating copy to clipboard operation
typeshed copied to clipboard

Collection of library stubs for Python, with static types

Results 615 typeshed issues
Sort by recently updated
recently updated
newest added

Release: https://pypi.org/pypi/cffi/2.0.0 Repository: https://github.com/python-cffi/cffi/ Typeshed stubs: https://github.com/python/typeshed/tree/main/stubs/cffi Changelog: https://cffi.readthedocs.io/en/latest/whatsnew.html Diff: https://github.com/python-cffi/cffi/compare/v1.17.1...v2.0.0 Stubsabot analysis of the diff between the two releases: - Total lines of Python code added: 356. - Total...

bot: stubsabot

> [!Important] > Please see https://discuss.python.org/t/support-suppressing-generator-context-managers/103615 first! This is how `ContextDecorator.__call__` is [implemented in the Python standard library](https://github.com/python/cpython/blob/8cd7f8bf8d6b62f30a8bba1f968eb0c593a8781a/Lib/contextlib.py#L81-L86): ```py def __call__(self, func): @wraps(func) def inner(*args, **kwds): with self._recreate_cm(): return func(*args,...

Release: https://pypi.org/pypi/tensorflow/2.20.0 Homepage: https://www.tensorflow.org/ Repository: https://github.com/tensorflow/tensorflow Typeshed stubs: https://github.com/python/typeshed/tree/main/stubs/tensorflow Diff: https://github.com/tensorflow/tensorflow/compare/v2.18.1...v2.20.0 Stubsabot analysis of the diff between the two releases: - Total lines of Python code added: 32. - Total...

help wanted
bot: stubsabot

This is an alternative to #14674 While investigating, I also noticed that QName classes can be the value of both Element.tag and Eelement.text, as well in the result of Element.items()...

Changes: - Removed the default value of `_Tag`, so `Element` is now `Element[Any]` instead of `Element[str]`. - clean up small inconsistencies caused by the default type of `_Tag` obscuring where...

A small testing framework for WSGI applications based around WebOb. Source: https://github.com/Pylons/webtest/blob/3.0.6/webtest/__init__.py Docs: https://docs.pylonsproject.org/projects/webtest/en/latest/ `webtest.forms.Form` turned out a little more lax than I would've liked. But making it more strict...

**Bug Report** Since upgrading to **mypy 1.15**+, using ElementTree has become increasingly difficult. Likely due to https://github.com/python/typeshed/pull/13349. I'm not sure if this extra strictness is expected or if I'm just...

**To Reproduce** ```python import xml.etree.ElementTree as ET parser = ET.XMLParser(target=ET.TreeBuilder(insert_comments=True)) doc = ET.ElementTree().parse("foo.xml", parser) for el in doc.findall("*"): if el.tag is ET.Comment: # error: Non-overlapping identity check (left operand type:...

stubs: false positive

While their implementation even specifically checks whether operand is an instance of an Iterable (for example: https://github.com/python/cpython/blob/c779f2324df06563b4ba3d70d0941e619ccaf5ff/Lib/_collections_abc.py#L628) ```python from collections.abc import Set from typing import Iterable, Iterator class S[T](Set[T]): def...