Skip to content

support pyright 1.1.396 and mypy 1.15.0 #1141

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
Mar 2, 2025

Conversation

Dr-Irv
Copy link
Collaborator

@Dr-Irv Dr-Irv commented Mar 2, 2025

pyright changed some logic with figuring out overlapping overloads.

@Dr-Irv Dr-Irv requested a review from twoertwein March 2, 2025 16:43
@@ -67,7 +67,7 @@ class Index(IndexOpsMixin[S1]):
__hash__: ClassVar[None] # type: ignore[assignment]
# overloads with additional dtypes
@overload
def __new__(
def __new__( # pyright: ignore[reportOverlappingOverload]
Copy link
Member

Choose a reason for hiding this comment

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

Ahhh this is why, great catch I failed to understand why my editor raised that flag but adding so failed on CI when pushing a PR!

@twoertwein twoertwein merged commit cf4d68d into pandas-dev:main Mar 2, 2025
10 checks passed
@twoertwein
Copy link
Member

Thanks @Dr-Irv!

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.

3 participants