You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sounds reasonable. Interestingly, typeshed for csv.writer() has this declaration for the quoting argument: quoting: _QuotingType. Then when defining QuotingType, there is this:
UOTE_ALL: Literal[1]
QUOTE_MINIMAL: Literal[0]
QUOTE_NONE: Literal[3]
QUOTE_NONNUMERIC: Literal[2]
ifsys.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)_QuotingType: TypeAlias=int
Nevertheless, I'm open to a PR with your suggested changes, although we may want to consider referring to the constants in the csv package rather than the explicit numbers 0, 1, 2, 3, etc.
There probably should be a switch like
at
pandas-stubs/pandas-stubs/_typing.pyi
Line 741 in 48ca4b0
as QUOTE_STRINGS and QUOTE_NOTNULL options have been added in python 3.12
The text was updated successfully, but these errors were encountered: