Remove files that only exist on <=3.6, update a few comments (#8273)

This commit is contained in:
Alex Waygood
2022-07-12 08:12:32 +01:00
committed by GitHub
parent 78d96cd17e
commit 27db37240a
5 changed files with 2 additions and 15 deletions

View File

@@ -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.