bpo-39481: PEP 585 for a variety of modules (GH-19423) · python/cpython@0361556 (original) (raw)
`@@ -6,16 +6,28 @@
`
6
6
`defaultdict, deque, OrderedDict, Counter, UserDict, UserList
`
7
7
`)
`
8
8
`from collections.abc import *
`
``
9
`+
from concurrent.futures import Future
`
``
10
`+
from concurrent.futures.thread import _WorkItem
`
9
11
`from contextlib import AbstractContextManager, AbstractAsyncContextManager
`
``
12
`+
from ctypes import Array, LibraryLoader
`
10
13
`from difflib import SequenceMatcher
`
11
14
`from filecmp import dircmp
`
12
15
`from fileinput import FileInput
`
13
16
`from mmap import mmap
`
14
17
`from ipaddress import IPv4Network, IPv4Interface, IPv6Network, IPv6Interface
`
15
18
`from itertools import chain
`
``
19
`+
from http.cookies import Morsel
`
``
20
`+
from multiprocessing.managers import ValueProxy
`
``
21
`+
from multiprocessing.pool import ApplyResult
`
``
22
`+
from multiprocessing.shared_memory import ShareableList
`
``
23
`+
from multiprocessing.queues import SimpleQueue
`
16
24
`from os import DirEntry
`
17
25
`from re import Pattern, Match
`
18
26
`from types import GenericAlias, MappingProxyType, AsyncGeneratorType
`
``
27
`+
from tempfile import TemporaryDirectory, SpooledTemporaryFile
`
``
28
`+
from urllib.parse import SplitResult, ParseResult
`
``
29
`+
from unittest.case import _AssertRaisesContext
`
``
30
`+
from queue import Queue, SimpleQueue
`
19
31
`import typing
`
20
32
``
21
33
`from typing import TypeVar
`
`@@ -49,6 +61,15 @@ def test_subscriptable(self):
`
49
61
`DirEntry,
`
50
62
`IPv4Network, IPv4Interface, IPv6Network, IPv6Interface,
`
51
63
`chain,
`
``
64
`+
TemporaryDirectory, SpooledTemporaryFile,
`
``
65
`+
Queue, SimpleQueue,
`
``
66
`+
_AssertRaisesContext,
`
``
67
`+
Array, LibraryLoader,
`
``
68
`+
SplitResult, ParseResult,
`
``
69
`+
ValueProxy, ApplyResult,
`
``
70
`+
ShareableList, SimpleQueue,
`
``
71
`+
Future, _WorkItem,
`
``
72
`+
Morsel,
`
52
73
` ):
`
53
74
`tname = t.name
`
54
75
`with self.subTest(f"Testing {tname}"):
`