Update csv stubs for Python3.12 (#10250)

This commit is contained in:
Nikita Sobolev
2023-06-03 15:45:43 +03:00
committed by GitHub
parent 628c88d995
commit c85f7de957
2 changed files with 9 additions and 0 deletions

View File

@@ -21,6 +21,9 @@ from _csv import (
unregister_dialect as unregister_dialect,
writer as writer,
)
if sys.version_info >= (3, 12):
from _csv import QUOTE_STRINGS as QUOTE_STRINGS, QUOTE_NOTNULL as QUOTE_NOTNULL
from _typeshed import SupportsWrite
from collections.abc import Collection, Iterable, Iterator, Mapping, Sequence
from typing import Any, Generic, TypeVar, overload
@@ -57,6 +60,8 @@ __all__ = [
"DictWriter",
"unix_dialect",
]
if sys.version_info >= (3, 12):
__all__ += ["QUOTE_STRINGS", "QUOTE_NOTNULL"]
_T = TypeVar("_T")