Add link to Python typing docs for type stubs

AFAIK there isn't currently a link to the article on ["Type Stubs"](https://typing.readthedocs.io/en/latest/source/stubs.html) in the official Python static typing documentation. This PR adds a link to this documentation, which is the most comprehensive I have seen around type stubs.
This commit is contained in:
Saul Shanabrook 2022-11-21 16:48:43 -05:00 committed by GitHub
parent d6abdc0f63
commit 8a75352122
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,8 @@ Currently the best solution for the problem is to maintain manually the `*.pyi`
> A stubs file only contains a description of the public interface of the module without any implementations.
There is also [extensive documentation on type stubs on the offical Python typing documentation](https://typing.readthedocs.io/en/latest/source/stubs.html).
Probably most Python developers encountered them already when trying to use the IDE "Go to Definition" function on any builtin type. For example the definitions of few standard exceptions look like this:
```python