Skip to content

Commit 4f1a086

Browse files
authored
TYP: Added type hint to Index.repeat (#54739)
Added type hint to Index.repeat
1 parent 2c024a6 commit 4f1a086

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
@@ -1206,7 +1206,7 @@ def _maybe_disallow_fill(self, allow_fill: bool, fill_value, indices) -> bool:
12061206
"""
12071207

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

0 commit comments

Comments
 (0)