Skip to content

'Fix' mypy-nightly #788

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

Merged
merged 1 commit into from
Oct 4, 2023
Merged

'Fix' mypy-nightly #788

merged 1 commit into from
Oct 4, 2023

Conversation

twoertwein
Copy link
Member

When specifying the generic type of IntervalSeries, the current mypy also sees it as an error.

@@ -517,7 +517,7 @@ S1 = TypeVar(
| datetime.datetime # includes pd.Timestamp
| datetime.timedelta # includes pd.Timedelta
| Period
| Interval[int | float | Timestamp | Timedelta]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mypy can't match _OrderableT with a Union of _OrderableT's bound

@twoertwein twoertwein requested a review from Dr-Irv October 4, 2023 00:23
Copy link
Collaborator

@Dr-Irv Dr-Irv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @twoertwein . I wouldn't have come up with that solution!

@Dr-Irv Dr-Irv merged commit 1cd1164 into pandas-dev:main Oct 4, 2023
@twoertwein twoertwein deleted the nightly branch February 10, 2024 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants