mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
Remove files that only exist on <=3.6, update a few comments (#8273)
This commit is contained in:
@@ -19,6 +19,6 @@ directory cannot always use modern syntax for type hints. For example, PEP 604
|
||||
syntax (unions with a pipe `|` operator) is new in Python 3.10. While this
|
||||
syntax can be used on older Python versions in a `.pyi` file, code using this
|
||||
syntax will fail at runtime on Python <=3.9. Since the test cases all use `.py`
|
||||
extensions, and since the tests need to pass on all Python versions >=3.6, PEP
|
||||
extensions, and since the tests need to pass on all Python versions >=3.7, PEP
|
||||
604 syntax cannot be used in a test case. Use `typing.Union` and
|
||||
`typing.Optional` instead.
|
||||
|
||||
Reference in New Issue
Block a user