Skip to content

Commit 114949b

Browse files
authored
Note that Python 3.7 support is limited (#10601)
1 parent cfc671f commit 114949b

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

CONTRIBUTING.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -363,14 +363,14 @@ project's tracker to fix their documentation.
363363
### Stub versioning
364364

365365
You can use checks
366-
like `if sys.version_info >= (3, 8):` to denote new functionality introduced
366+
like `if sys.version_info >= (3, 12):` to denote new functionality introduced
367367
in a given Python version or solve type differences. When doing so, only use
368368
two-tuples. Because of this, if a given functionality was
369-
introduced in, say, Python 3.7.4, your check:
369+
introduced in, say, Python 3.11.4, your check:
370370

371-
* should be expressed as `if sys.version_info >= (3, 7):`
372-
* should NOT be expressed as `if sys.version_info >= (3, 7, 4):`
373-
* should NOT be expressed as `if sys.version_info >= (3, 8):`
371+
* should be expressed as `if sys.version_info >= (3, 11):`
372+
* should NOT be expressed as `if sys.version_info >= (3, 11, 4):`
373+
* should NOT be expressed as `if sys.version_info >= (3, 12):`
374374

375375
When your stub contains if statements for different Python versions,
376376
always put the code for the most recent Python version first.

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ the project the stubs are for, but instead report them here to typeshed.**
2020
Further documentation on stub files, typeshed, and Python's typing system in
2121
general, can also be found at https://typing.readthedocs.io/en/latest/.
2222

23-
Typeshed supports Python versions 3.7 and up.
23+
Typeshed fully supports Python versions 3.8 and up. Support for Python 3.7
24+
is limited: see https://github.com/python/typeshed/issues/10113
25+
for details.
2426

2527
## Using
2628

0 commit comments

Comments
 (0)