Skip to content

Commit 27db372

Browse files
authored
Remove files that only exist on <=3.6, update a few comments (#8273)
1 parent 78d96cd commit 27db372

File tree

5 files changed

+2
-15
lines changed

5 files changed

+2
-15
lines changed

stdlib/VERSIONS

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ ast: 2.7-
6363
asynchat: 2.7-
6464
asyncio: 3.4-
6565
asyncio.mixins: 3.10-
66-
asyncio.compat: 3.4-3.6
6766
asyncio.exceptions: 3.8-
6867
asyncio.format_helpers: 3.7-
6968
asyncio.runners: 3.7-
@@ -164,7 +163,6 @@ locale: 2.7-
164163
logging: 2.7-
165164
lzma: 3.3-
166165
macpath: 2.7-3.7
167-
macurl2path: 2.7-3.6
168166
mailbox: 2.7-
169167
mailcap: 2.7-
170168
marshal: 2.7-

stdlib/asyncio/compat.pyi

Lines changed: 0 additions & 5 deletions
This file was deleted.

stdlib/macurl2path.pyi

Lines changed: 0 additions & 5 deletions
This file was deleted.

stdlib/subprocess.pyi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ _TXT: TypeAlias = bytes | str
6767
if sys.version_info >= (3, 8):
6868
_CMD: TypeAlias = StrOrBytesPath | Sequence[StrOrBytesPath]
6969
else:
70-
# Python 3.6 doesn't support _CMD being a single PathLike.
70+
# Python 3.7 doesn't support _CMD being a single PathLike.
7171
# See: https://bugs.python.org/issue31961
7272
_CMD: TypeAlias = _TXT | Sequence[StrOrBytesPath]
7373
if sys.platform == "win32":
@@ -704,7 +704,6 @@ elif sys.version_info >= (3, 9):
704704
) -> CompletedProcess[Any]: ...
705705

706706
else:
707-
# Nearly the same args as for 3.6, except for capture_output and text
708707
@overload
709708
def run(
710709
args: _CMD,

test_cases/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ directory cannot always use modern syntax for type hints. For example, PEP 604
1919
syntax (unions with a pipe `|` operator) is new in Python 3.10. While this
2020
syntax can be used on older Python versions in a `.pyi` file, code using this
2121
syntax will fail at runtime on Python <=3.9. Since the test cases all use `.py`
22-
extensions, and since the tests need to pass on all Python versions >=3.6, PEP
22+
extensions, and since the tests need to pass on all Python versions >=3.7, PEP
2323
604 syntax cannot be used in a test case. Use `typing.Union` and
2424
`typing.Optional` instead.

0 commit comments

Comments
 (0)