File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -269,6 +269,10 @@ def read_metadata(distribution: str) -> StubMetadata:
269
269
assert type (requires_python_str ) is str
270
270
requires_python = Specifier (requires_python_str )
271
271
assert requires_python != oldest_supported_python_specifier , f'requires_python="{ requires_python } " is redundant'
272
+ # Check minimum Python version is not less than the oldest version of Python supported by typeshed
273
+ assert oldest_supported_python_specifier .contains (
274
+ requires_python .version
275
+ ), f"'requires_python' contains versions lower than typeshed's oldest supported Python ({ oldest_supported_python } )"
272
276
assert requires_python .operator == ">=" , "'requires_python' should be a minimum version specifier, use '>=3.x'"
273
277
274
278
empty_tools : dict [object , object ] = {}
You can’t perform that action at this time.
0 commit comments