mirror of
https://github.com/python/cpython.git
synced 2025-07-22 18:55:22 +00:00
Add __class_getitem__ to csv.DictReader and csv.DictWriter (#92393)
This commit is contained in:
parent
3680ebed7f
commit
5ed5c56123
4 changed files with 12 additions and 1 deletions
|
@ -11,6 +11,7 @@ from concurrent.futures import Future
|
|||
from concurrent.futures.thread import _WorkItem
|
||||
from contextlib import AbstractContextManager, AbstractAsyncContextManager
|
||||
from contextvars import ContextVar, Token
|
||||
from csv import DictReader, DictWriter
|
||||
from dataclasses import Field
|
||||
from functools import partial, partialmethod, cached_property
|
||||
from graphlib import TopologicalSorter
|
||||
|
@ -122,7 +123,8 @@ class BaseTest(unittest.TestCase):
|
|||
WeakSet, ReferenceType, ref,
|
||||
ShareableList,
|
||||
Future, _WorkItem,
|
||||
Morsel]
|
||||
Morsel,
|
||||
DictReader, DictWriter]
|
||||
if ctypes is not None:
|
||||
generic_types.extend((ctypes.Array, ctypes.LibraryLoader))
|
||||
if ValueProxy is not None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue