Skip to content

Commit 7edf271

Browse files
natmokvalphofl
authored andcommitted
STYLE enable pylint: comparison-of-constants (pandas-dev#49502)
1 parent 81491c7 commit 7edf271

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pandas/tests/io/parser/test_dialect.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ def test_dialect_conflict_except_delimiter(all_parsers, custom_dialect, arg, val
9797

9898
# arg=None tests when we pass in the dialect without any other arguments.
9999
if arg is not None:
100-
if "value" == "dialect": # No conflict --> no warning.
100+
if value == "dialect": # No conflict --> no warning.
101101
kwds[arg] = dialect_kwargs[arg]
102-
elif "value" == "default": # Default --> no warning.
102+
elif value == "default": # Default --> no warning.
103103
from pandas.io.parsers.base_parser import parser_defaults
104104

105105
kwds[arg] = parser_defaults[arg]

pyproject.toml

-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ disable = [
102102

103103
# pylint type "R": refactor, for bad code smell
104104
"chained-comparison",
105-
"comparison-of-constants",
106105
"comparison-with-itself",
107106
"consider-merging-isinstance",
108107
"consider-using-min-builtin",

0 commit comments

Comments
 (0)