File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed
Filter options
Expand file tree Collapse file tree 2 files changed +15
-3
lines changed
Original file line number Diff line number Diff line change @@ -26,6 +26,14 @@ Starting with version 4.0.0, `typing_extensions` uses
26
26
[ Semantic Versioning] ( https://semver.org/ ) . See the documentation
27
27
for more detail.
28
28
29
+ # Type stubs
30
+
31
+ A stub file for ` typing_extensions ` is maintained
32
+ [ in typeshed] ( https://github.com/python/typeshed/blob/main/stdlib/typing_extensions.pyi ) .
33
+ Because of the special status that ` typing_extensions ` holds in the typing ecosystem,
34
+ the stubs are placed in the standard library in typeshed and distributed as
35
+ part of the stubs bundled with individual type checkers.
36
+
29
37
# Running tests
30
38
31
39
Testing ` typing_extensions ` can be tricky because many development tools depend on
Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ The `typing_extensions` module serves two related purposes:
15
15
- Enable experimentation with new type system PEPs before they are accepted and
16
16
added to the ` typing ` module.
17
17
18
+ ` typing_extensions ` is treated specially by static type checkers such as
19
+ mypy and pyright. Objects defined in ` typing_extensions ` are treated the same
20
+ way as equivalent forms in ` typing ` .
21
+
18
22
` typing_extensions ` uses
19
23
[ Semantic Versioning] ( https://semver.org/ ) . The
20
24
major version will be incremented only for backwards-incompatible changes.
@@ -29,7 +33,7 @@ where `x.y` is the first version that includes all features you need.
29
33
See [ the documentation] ( https://typing-extensions.readthedocs.io/en/latest/# ) for a
30
34
complete listing of module contents.
31
35
32
- ## Running tests
36
+ ## Contributing
33
37
34
- To run tests, navigate into the ` src/ ` directory and run
35
- ` test_typing_extensions.py ` .
38
+ See [ CONTRIBUTING.md ] ( https://github.com/python/typing_extensions/blob/main/CONTRIBUTING.md )
39
+ for how to contribute to ` typing_extensions ` .
You can’t perform that action at this time.
0 commit comments