typeshed
typeshed copied to clipboard
Collection of library stubs for Python, with static types
https://github.com/eliben/pyelftools/issues/371
In the module `os`, `EX_NOTFOUND` is exposed on platforms that are neither `win32` nor `darwin`. ([source](https://github.com/python/typeshed/blob/main/stdlib/os/__init__.pyi#L314-L315)) Using **Python 3.11.6** on **EndeavourOS** 64-bit (Linux 6.6.10-arch1-1), raises at runtime: ```py AttributeError: module...
Fixes #11237 This is the script I used: https://raw.githubusercontent.com/hauntsaninja/snippets/main/pep570.py I haven't looked through the entire diff, let's see stubtest
The `gdb` "package" is a bit special. The `gdb` module only exists if you run gdb's built-in Python. You can't install it from pypi, for example. #11208 contains commands to...
I've been cleaning up inheritance mismatches. I've found that several modules with a C implementation fudge the module name of their classes. For example: `ReferenceType` is a class defined in...
This aligns with the implementation while giving greater fidelity to runtime naming and inheritance Related to https://github.com/python/typeshed/issues/3968 and https://github.com/python/typeshed/issues/11141
From https://github.com/python/typeshed/pull/11085#discussion_r1412902472 > I am not sure this is safe in all type checkers, since some may understand this as a forward reference. I'd prefer to keep the alias. CC...
Hi, There is an issue with `gdb/events.pyi` being imported incorrectly. The `gdb-stubs/__init__.pyi` file should do an `from .events import *` because the `gdb` module should see the `gdb.NewObjFileEvent` type. Without...
Following on from https://github.com/python/typeshed/issues/10020, it seemed from that discussion that there was both desire from the issue tracker on the [grpc-stubs](https://github.com/shabbyrobe/grpc-stubs) project to submit these types to typeshed, and willingness...