diff --git a/pandas/core/base.py b/pandas/core/base.py index 4dbe755a20b0f..fb563fd640cfd 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -134,7 +134,7 @@ def __sizeof__(self) -> int: """ memory_usage = getattr(self, "memory_usage", None) if memory_usage: - mem = memory_usage(deep=True) + mem = memory_usage(deep=True) # pylint: disable=not-callable return int(mem if is_scalar(mem) else mem.sum()) # no memory_usage attribute, so fall back to object's 'sizeof' diff --git a/pandas/tests/base/test_constructors.py b/pandas/tests/base/test_constructors.py index 9576bf57c8503..4e954891c2d98 100644 --- a/pandas/tests/base/test_constructors.py +++ b/pandas/tests/base/test_constructors.py @@ -87,7 +87,7 @@ def test_invalid_delegation(self): msg = "You cannot access the property prop" with pytest.raises(TypeError, match=msg): - delegate.prop() + delegate.prop @pytest.mark.skipif(PYPY, reason="not relevant for PyPy") def test_memory_usage(self): diff --git a/pyproject.toml b/pyproject.toml index 672a3208ac5ab..a862b9dfafc0f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -66,7 +66,6 @@ disable = [ "no-name-in-module", "no-value-for-parameter", "not-an-iterable", - "not-callable", "redundant-keyword-arg", "too-many-function-args", "undefined-variable",