Skip to content

Commit 4b656d5

Browse files
mecopurmroeschke
authored andcommitted
TYP: Added type hint to Index.repeat (pandas-dev#54739)
Added type hint to Index.repeat
1 parent daa39d0 commit 4b656d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/indexes/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,7 @@ def _maybe_disallow_fill(self, allow_fill: bool, fill_value, indices) -> bool:
12051205
"""
12061206

12071207
@Appender(_index_shared_docs["repeat"] % _index_doc_kwargs)
1208-
def repeat(self, repeats, axis=None):
1208+
def repeat(self, repeats, axis: None = None):
12091209
repeats = ensure_platform_int(repeats)
12101210
nv.validate_repeat((), {"axis": axis})
12111211
res_values = self._values.repeat(repeats)

0 commit comments

Comments
 (0)