typeshed
typeshed copied to clipboard
Collection of library stubs for Python, with static types
Add new `return_ints` argument, and add appropiate overloads.
Release: https://pypi.org/pypi/cffi/1.17.1 Homepage: http://cffi.readthedocs.org Repository: https://foss.heptapod.net/pypy/cffi Typeshed stubs: https://github.com/python/typeshed/tree/main/stubs/cffi Changelog: https://cffi.readthedocs.io/en/latest/whatsnew.html If stubtest fails for this PR: - Leave this PR open (as a reminder, and to prevent stubsabot from...
I'm very inexperienced with type annotations so I hope my conclusions were correct. Recently, when working on a project using jsonschema I had trouble with the following error raised by...
3.14 adds `__replace__` methods for `AST` and all of its subclasses.
The (relatively new - 3.5+) `FrameSummary` object *does* support slicing in a limited way like old frames did, as it indexes into a tuple, but the typeshed stubs don't have...
[New in 3.14](https://docs.python.org/3.14/library/ctypes.html#ctypes.c_double_complex).
Address Eric's comment here: https://github.com/python/typeshed/pull/12262#issuecomment-2205095705 Accidentally undid this commit before merging.
`DiDegreeView.__call__()` can return an integer if a single node is specified, as is also documented in the docstrings of the method: https://github.com/networkx/networkx/blob/89718e0514bded93ded5b00aed755a4474c1dc6f/networkx/classes/digraph.py#L1198-L1199 Implementation: https://github.com/networkx/networkx/blob/89718e0514bded93ded5b00aed755a4474c1dc6f/networkx/classes/reportviews.py#L436-L437
Adds a `signum` parameter to [`interrupt_main`](https://docs.python.org/3.13/library/_thread.html#thread.interrupt_main). Adds `start_joinable_thread`. The function takes 3 positional-or-keyword arguments: `function`, `handle` and `daemon`: [source](https://github.com/python/cpython/blob/d9efa45d7457b0dfea467bb1c2d22c69056ffc73/Modules/_threadmodule.c#L1957-L1968). `function` is callable same as in `start_new_thread`. `handle` is a `_thread._ThreadHandle`...