mirror of
https://github.com/python/cpython.git
synced 2025-08-28 04:35:02 +00:00
bpo-39481: PEP 585 for a variety of modules (GH-19423)
- concurrent.futures - ctypes - http.cookies - multiprocessing - queue - tempfile - unittest.case - urllib.parse
This commit is contained in:
parent
e3ec44d692
commit
0361556537
15 changed files with 66 additions and 1 deletions
|
@ -29,6 +29,7 @@ test_urlparse.py provides a good indicator of parsing behavior.
|
|||
|
||||
import re
|
||||
import sys
|
||||
import types
|
||||
import collections
|
||||
import warnings
|
||||
|
||||
|
@ -176,6 +177,8 @@ class _NetlocResultMixinBase(object):
|
|||
raise ValueError("Port out of range 0-65535")
|
||||
return port
|
||||
|
||||
__class_getitem__ = classmethod(types.GenericAlias)
|
||||
|
||||
|
||||
class _NetlocResultMixinStr(_NetlocResultMixinBase, _ResultMixinStr):
|
||||
__slots__ = ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue