File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 23
23
from pandas ._config import get_option
24
24
25
25
from pandas ._libs import index as libindex , lib , reshape , tslibs
26
+ from pandas ._typing import Label
26
27
from pandas .compat .numpy import function as nv
27
28
from pandas .util ._decorators import Appender , Substitution
28
29
from pandas .util ._validators import validate_bool_kwarg , validate_percentile
@@ -1439,7 +1440,7 @@ def to_markdown(
1439
1440
1440
1441
# ----------------------------------------------------------------------
1441
1442
1442
- def items (self ) -> Iterable [Tuple [Optional [ Hashable ] , Any ]]:
1443
+ def items (self ) -> Iterable [Tuple [Label , Any ]]:
1443
1444
"""
1444
1445
Lazily iterate over (index, value) tuples.
1445
1446
@@ -1469,7 +1470,7 @@ def items(self) -> Iterable[Tuple[Optional[Hashable], Any]]:
1469
1470
return zip (iter (self .index ), iter (self ))
1470
1471
1471
1472
@Appender (items .__doc__ )
1472
- def iteritems (self ) -> Iterable [Tuple [Optional [ Hashable ] , Any ]]:
1473
+ def iteritems (self ) -> Iterable [Tuple [Label , Any ]]:
1473
1474
return self .items ()
1474
1475
1475
1476
# ----------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments