typeshed
typeshed copied to clipboard
Collection of library stubs for Python, with static types
Release: https://pypi.org/pypi/pynput/1.7.7 Homepage: https://github.com/moses-palmer/pynput Repository: https://github.com/moses-palmer/pynput Typeshed stubs: https://github.com/python/typeshed/tree/main/stubs/pynput Diff: https://github.com/moses-palmer/pynput/compare/v1.7.6...v1.7.7 Stubsabot analysis of the diff between the two releases: - Total lines of Python code added: 325. - Total...
The actual implementation of pexpect.SpawnBase does not contain these functions but it is an abstract class and all children have these write methods. Since almost all interesting pexpect code does...
https://github.com/python/typeshed/pull/11890#discussion_r1597530831 An unwritten convention (because we've been bitten by it a few times in the past), is to not use newly added symbols from the stdlib stubs until all supported...
Need to wait for https://github.com/python/cpython/issues/72904#issuecomment-2118413330
Currently [our policy](https://github.com/python/typeshed/blob/main/CONTRIBUTING.md#third-party-library-removal-policy) says: > Third-party stubs are generally removed from typeshed when one of the following criteria is met: > > * The upstream package ships a py.typed file...
Test file (`decimal_prod.py`): ``` from decimal import Decimal from math import prod from typing import TYPE_CHECKING result = prod([Decimal(1), Decimal(2)]) if TYPE_CHECKING: reveal_type(result) else: print(type(result)) ``` Test: ``` $ mypy...
Whilst working on https://github.com/python/typeshed/pull/11696, I was having issues referencing the source code. After reading the doc and a bit of investigation, I realized why: The runtime of https://github.com/python/typeshed/tree/main/stubs/tensorflow/tensorflow/keras actually are...
https://github.com/python/typeshed/blob/6d20ea636ca7b66cec62f490ec9e42b63886c811/stdlib/tkinter/filedialog.pyi#L81-L90 The defaults are set to `...`, because the code is dynamic (as is usual with tkinter), and the default values couldn't be filled in automatically when we introduced default...
Release: https://pypi.org/pypi/peewee/3.17.5 Homepage: https://github.com/coleifer/peewee/ Repository: https://github.com/coleifer/peewee Typeshed stubs: https://github.com/python/typeshed/tree/main/stubs/peewee Diff: https://github.com/coleifer/peewee/compare/3.17.3...3.17.5 Stubsabot analysis of the diff between the two releases: - 0 public Python files have been added. - 0...