Skip to content

Commit cfeed03

Browse files
solved the pylint issue of "no self argument" (pandas-dev#48912)
* solved the pylint issue of "no self argument" * Update pandas/tests/io/test_sql.py Co-authored-by: Marco Edward Gorelli <[email protected]> Co-authored-by: Marco Edward Gorelli <[email protected]>
1 parent b0237ed commit cfeed03

File tree

4 files changed

+3
-1
lines changed

4 files changed

+3
-1
lines changed

pandas/tests/extension/decimal/test_decimal.py

+1
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ def test_compare_array(self, data, comparison_op):
284284
class DecimalArrayWithoutFromSequence(DecimalArray):
285285
"""Helper class for testing error handling in _from_sequence."""
286286

287+
@classmethod
287288
def _from_sequence(cls, scalars, dtype=None, copy=False):
288289
raise KeyError("For the test")
289290

pandas/tests/io/test_sql.py

+1
Original file line numberDiff line numberDiff line change
@@ -1612,6 +1612,7 @@ class _TestSQLAlchemy(SQLAlchemyMixIn, PandasSQLTest):
16121612

16131613
flavor: str
16141614

1615+
@classmethod
16151616
@pytest.fixture(autouse=True, scope="class")
16161617
def setup_class(cls):
16171618
cls.setup_import()

pandas/tests/scalar/period/test_period.py

+1
Original file line numberDiff line numberDiff line change
@@ -840,6 +840,7 @@ def test_period_deprecated_freq(self):
840840
assert isinstance(p1, Period)
841841
assert isinstance(p2, Period)
842842

843+
@staticmethod
843844
def _period_constructor(bound, offset):
844845
return Period(
845846
year=bound.year,

pyproject.toml

-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ disable = [
4949
"no-member",
5050
"no-method-argument",
5151
"no-name-in-module",
52-
"no-self-argument",
5352
"no-value-for-parameter",
5453
"non-iterator-returned",
5554
"not-an-iterable",

0 commit comments

Comments
 (0)