Skip to content

Commit a1b6fcb

Browse files
authored
STYLE enable pylint: global-variable-not-assigned (#49744)
1 parent d2630d8 commit a1b6fcb

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

pandas/_config/config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ def config_prefix(prefix) -> Generator[None, None, None]:
767767
# Note: reset_option relies on set_option, and on key directly
768768
# it does not fit in to this monkey-patching scheme
769769

770-
global register_option, get_option, set_option, reset_option
770+
global register_option, get_option, set_option
771771

772772
def wrap(func: F) -> F:
773773
def inner(key: str, *args, **kwds):

pandas/core/computation/expressions.py

-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@ def set_test_mode(v: bool = True) -> None:
271271

272272

273273
def _store_test_result(used_numexpr: bool) -> None:
274-
global _TEST_RESULT
275274
if used_numexpr:
276275
_TEST_RESULT.append(used_numexpr)
277276

pyproject.toml

-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ disable = [
132132
"expression-not-assigned",
133133
"fixme",
134134
"global-statement",
135-
"global-variable-not-assigned",
136135
"invalid-envvar-default",
137136
"invalid-overridden-method",
138137
"keyword-arg-before-vararg",

0 commit comments

Comments
 (0)