Merge pull request #2767 from saulshanabrook/patch-1

Add link to Python typing docs for type stubs
This commit is contained in:
David Hewitt 2022-11-22 08:12:28 +00:00 committed by GitHub
commit 23fcdf950b
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