-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
BUG: Don't warn if default conflicts with dialect #23775
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
BUG: Don't warn if default conflicts with dialect #23775
Conversation
Hello @gfyoung! Thanks for submitting the PR.
|
Codecov Report
@@ Coverage Diff @@
## master #23775 +/- ##
==========================================
+ Coverage 92.28% 92.28% +<.01%
==========================================
Files 161 161
Lines 51434 51449 +15
==========================================
+ Hits 47467 47481 +14
- Misses 3967 3968 +1
Continue to review full report at Codecov.
|
thanks! |
|
||
# arg=None tests when we pass in the dialect without any other arguments. | ||
if arg is not None: | ||
if "value" == "dialect": # No conflict --> no warning. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
presumably this was mean to be if value == "dialect"
? fortunately pylint has caught this 😄 https://github.com/pandas-dev/pandas/pull/49502/files
xref #23761
Also introduces a context manager for setting CSV dialect.