diff --git a/pandas/_config/config.py b/pandas/_config/config.py index a942da663889b..4170bb7706bdd 100644 --- a/pandas/_config/config.py +++ b/pandas/_config/config.py @@ -767,7 +767,7 @@ def config_prefix(prefix) -> Generator[None, None, None]: # Note: reset_option relies on set_option, and on key directly # it does not fit in to this monkey-patching scheme - global register_option, get_option, set_option, reset_option + global register_option, get_option, set_option def wrap(func: F) -> F: def inner(key: str, *args, **kwds): diff --git a/pandas/core/computation/expressions.py b/pandas/core/computation/expressions.py index 8cd4fa1240dc3..8689d9dff5330 100644 --- a/pandas/core/computation/expressions.py +++ b/pandas/core/computation/expressions.py @@ -271,7 +271,6 @@ def set_test_mode(v: bool = True) -> None: def _store_test_result(used_numexpr: bool) -> None: - global _TEST_RESULT if used_numexpr: _TEST_RESULT.append(used_numexpr) diff --git a/pyproject.toml b/pyproject.toml index ffd59f0804c58..8b7204af7c089 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -132,7 +132,6 @@ disable = [ "expression-not-assigned", "fixme", "global-statement", - "global-variable-not-assigned", "invalid-envvar-default", "invalid-overridden-method", "keyword-arg-before-vararg",