False positive for operator in
in pandas
#202
Labels
bug
Something isn't working
fixed in next version (main)
A fix has been implemented and will appear in an upcoming version
Environment data
Expected behaviour
Pylance should not detect any error when using the
in
operator on pandas Index objects (for example'c1' in df.columns
)Actual behaviour
Pylance raises the following error when the
in
operator is used on a pandas Index object:Operator "in" not supported for types "str" and "Index[_str]"
The code itself executes just fine. This happens for example when
in
ornot in
is used on a DataFrame'scolumns
orindex
properties.Code Snippet / Additional information
The text was updated successfully, but these errors were encountered: