Skip to content

Commit 2d12e2d

Browse files
committed
Optional[Hashable] -> Label
1 parent f89f616 commit 2d12e2d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/core/series.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
from pandas._config import get_option
2424

2525
from pandas._libs import index as libindex, lib, reshape, tslibs
26+
from pandas._typing import Label
2627
from pandas.compat.numpy import function as nv
2728
from pandas.util._decorators import Appender, Substitution
2829
from pandas.util._validators import validate_bool_kwarg, validate_percentile
@@ -1439,7 +1440,7 @@ def to_markdown(
14391440

14401441
# ----------------------------------------------------------------------
14411442

1442-
def items(self) -> Iterable[Tuple[Optional[Hashable], Any]]:
1443+
def items(self) -> Iterable[Tuple[Label, Any]]:
14431444
"""
14441445
Lazily iterate over (index, value) tuples.
14451446
@@ -1469,7 +1470,7 @@ def items(self) -> Iterable[Tuple[Optional[Hashable], Any]]:
14691470
return zip(iter(self.index), iter(self))
14701471

14711472
@Appender(items.__doc__)
1472-
def iteritems(self) -> Iterable[Tuple[Optional[Hashable], Any]]:
1473+
def iteritems(self) -> Iterable[Tuple[Label, Any]]:
14731474
return self.items()
14741475

14751476
# ----------------------------------------------------------------------

0 commit comments

Comments
 (0)