Skip to content
  • Sponsor pandas-dev/pandas-stubs

  • Notifications You must be signed in to change notification settings
  • Fork 141

GH1184 Clean up new warnings with new version of pyright (1.1.399) #1185

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 3 commits into from
Apr 25, 2025

Conversation

loicdiridollou
Copy link
Member

Verified

This commit was signed with the committer’s verified signature.
loicdiridollou Loic Diridollou

Verified

This commit was signed with the committer’s verified signature.
loicdiridollou Loic Diridollou
pyproject.toml Outdated
@@ -219,6 +219,7 @@ reportUnknownParameterType = false
reportUnknownVariableType = false
reportUnusedVariable = false
reportPrivateUsage = false
reportPrivateImportUsage = false
Copy link
Collaborator

Choose a reason for hiding this comment

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

So this becomes a problem, because reportPrivateImportUsage = true is on when people use pyright and pandas-stubs is installed.

See microsoft/pyright#10248 for a discussion. It looks like the pyright maintainer is going to consider reverting the change that created this issue, so if he does that, we can handle this PR later.

Copy link
Member Author

Choose a reason for hiding this comment

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

Okay that is very insightful!
Let's hold on this PR before pyright clarifies the situation, for now the other PRs I have made have locked pyright version.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@loicdiridollou pyright 1.1.400 has been released and they removed the thing that tests for private imports. Can you update pyproject.toml in this PR so that we can get the CI to pass with 1.1.400?

@loicdiridollou
Copy link
Member Author

loicdiridollou commented Apr 24, 2025 via email

Verified

This commit was signed with the committer’s verified signature.
loicdiridollou Loic Diridollou
…1184_pyright
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.

@Dr-Irv Dr-Irv merged commit 3d59a73 into pandas-dev:main Apr 25, 2025
13 checks passed
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.

New version of pyright 1.1.399 clears up a lot of unnecessary ignores
2 participants