We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Describe the bug A clear and concise description of what the bug is.
To Reproduce
pandas
mypy
pyright
df = DataFrame({"a": [1, 2]}) df.insert(loc=0, column="b", value=None)
error: Value of type variable "ListLike" of "insert" of "DataFrame" cannot be "None" [type-var]
Please complete the following information:
pandas-stubs
Additional context Add any other context about the problem here.
According to the main repo, any Scalar is allowed
The text was updated successfully, but these errors were encountered:
Need to change
pandas-stubs/pandas-stubs/core/frame.pyi
Line 546 in 495e91f
to be value: Scalar | ListLikeU | None with appropriate tests.
value: Scalar | ListLikeU | None
Sorry, something went wrong.
gh-529 Fixing Dataframe.insert (#543)
00ab656
* Update test_frame.py * Update frame.pyi * Update test_frame.py * Changed assert_type * Update test_frame.py * Update test_frame.py
pandas-devgh-529 Fixing Dataframe.insert (pandas-dev#543)
d28ed1c
Successfully merging a pull request may close this issue.
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
pandas
example that is not properly checked by the stubs.mypy
orpyright
).Please complete the following information:
pandas-stubs
latestAdditional context
Add any other context about the problem here.
According to the main repo, any Scalar is allowed
The text was updated successfully, but these errors were encountered: