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

@@ -1,3 +1,4 @@
import sys
from _typeshed import SupportsWrite
from collections.abc import Iterable, Iterator
from typing import Any
@@ -9,6 +10,9 @@ QUOTE_ALL: Literal[1]
QUOTE_MINIMAL: Literal[0]
QUOTE_NONE: Literal[3]
QUOTE_NONNUMERIC: Literal[2]
if sys.version_info >= (3, 12):
QUOTE_STRINGS: Literal[4]
QUOTE_NOTNULL: Literal[5]
# Ideally this would be `QUOTE_ALL | QUOTE_MINIMAL | QUOTE_NONE | QUOTE_NONNUMERIC`
# However, using literals in situations like these can cause false-positives (see #7258)