pandas: Incorrect parameter type for pandas.Index.get_level_values()
#780
Labels
fixed in next version (main)
A fix has been implemented and will appear in an upcoming version
typestub
Issue relating to our bundled type stubs
Environment
Expected behavior
Recognize that the parameter
level
forpandas.Index.get_level_values(level)
can be of typestr
orint
.Actual behavior
Pylance incorrectly reports that the parameter
level
forpandas.Index.get_level_values(level)
must be a string:Code Snippet
Should not return errors:
Please let me know how I can improve this bug report because many more will follow (all for typeshed issues). Is this the best repo for such bug reports? (I am following the precedent of Pandas type issues in the release notes.)
The text was updated successfully, but these errors were encountered: