-
-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid typing for df.to_csv
#962
Comments
Sounds reasonable. Interestingly, typeshed for UOTE_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)
_QuotingType: TypeAlias = int That links to this issue: python/typeshed#7258 Nevertheless, I'm open to a PR with your suggested changes, although we may want to consider referring to the constants in the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: