-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
TYPING : Series.name -> Optional[Hashable] #29164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
No problem with changing but what caused this issue exactly? Something we need to account for with pickle compat? |
@@ -926,7 +927,7 @@ def aggregate(self, func=None, *args, **kwargs): | |||
|
|||
agg = aggregate | |||
|
|||
def _iterate_slices(self) -> Iterable[Tuple[Hashable, Series]]: | |||
def _iterate_slices(self) -> Iterable[Tuple[Optional[Hashable], Series]]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note there is a similar definition for SeriesGroupBy - not sure if that needs to change as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe IndexLabel = Optional[Hashable] in _typing.py
no. with check_untyped_defs (i.e. checks body of _unpickle_series_compat)..
and then assigned to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Thanks! |
* TYPING : Series.name -> Optional[Hashable]
* TYPING : Series.name -> Optional[Hashable]
* TYPING : Series.name -> Optional[Hashable]
* TYPING : Series.name -> Optional[Hashable]
* TYPING : Series.name -> Optional[Hashable]
xref #29062 (comment)
cc @WillAyd @TomAugspurger