diff --git a/pandas/io/formats/excel.py b/pandas/io/formats/excel.py index 4279a9707e692..f9b3145eab170 100644 --- a/pandas/io/formats/excel.py +++ b/pandas/io/formats/excel.py @@ -96,7 +96,7 @@ def __init__( unique_declarations = frozenset(declaration_dict.items()) style = css_converter(unique_declarations) - return super().__init__(row=row, col=col, val=val, style=style, **kwargs) + super().__init__(row=row, col=col, val=val, style=style, **kwargs) class CSSToExcelConverter: diff --git a/pandas/tests/apply/test_series_apply.py b/pandas/tests/apply/test_series_apply.py index 8900aa0060559..afe1c236858ab 100644 --- a/pandas/tests/apply/test_series_apply.py +++ b/pandas/tests/apply/test_series_apply.py @@ -668,7 +668,7 @@ def test_map_abc_mapping_with_missing(non_dict_mapping_subclass): # https://github.com/pandas-dev/pandas/issues/29733 # Check collections.abc.Mapping support as mapper for Series.map class NonDictMappingWithMissing(non_dict_mapping_subclass): - def __missing__(key): + def __missing__(self, key): return "missing" s = Series([1, 2, 3]) diff --git a/pandas/tests/dtypes/test_inference.py b/pandas/tests/dtypes/test_inference.py index 8fe6abd3b0ed5..14f37bca71f82 100644 --- a/pandas/tests/dtypes/test_inference.py +++ b/pandas/tests/dtypes/test_inference.py @@ -236,7 +236,7 @@ def test_is_sequence(): assert not is_seq(np.int64) class A: - def __getitem__(self): + def __getitem__(self, item): return 1 assert not is_seq(A()) diff --git a/pandas/tests/frame/test_constructors.py b/pandas/tests/frame/test_constructors.py index d00cf198b3296..fb5da7e81adbd 100644 --- a/pandas/tests/frame/test_constructors.py +++ b/pandas/tests/frame/test_constructors.py @@ -1390,7 +1390,7 @@ def __init__(self, lst) -> None: def __getitem__(self, n): return self._lst.__getitem__(n) - def __len__(self, n): + def __len__(self): return self._lst.__len__() lst_containers = [DummyContainer([1, "a"]), DummyContainer([2, "b"])]