Skip to content

Commit 17c4e13

Browse files
authored
STYLE enable pylint: not-callable (#49833)
1 parent 556848e commit 17c4e13

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

pandas/core/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def __sizeof__(self) -> int:
134134
"""
135135
memory_usage = getattr(self, "memory_usage", None)
136136
if memory_usage:
137-
mem = memory_usage(deep=True)
137+
mem = memory_usage(deep=True) # pylint: disable=not-callable
138138
return int(mem if is_scalar(mem) else mem.sum())
139139

140140
# no memory_usage attribute, so fall back to object's 'sizeof'

pandas/tests/base/test_constructors.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def test_invalid_delegation(self):
8787

8888
msg = "You cannot access the property prop"
8989
with pytest.raises(TypeError, match=msg):
90-
delegate.prop()
90+
delegate.prop
9191

9292
@pytest.mark.skipif(PYPY, reason="not relevant for PyPy")
9393
def test_memory_usage(self):

pyproject.toml

-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ disable = [
6666
"no-name-in-module",
6767
"no-value-for-parameter",
6868
"not-an-iterable",
69-
"not-callable",
7069
"redundant-keyword-arg",
7170
"too-many-function-args",
7271
"undefined-variable",

0 commit comments

Comments
 (0)