PY-82168: Implement inspection and quick fixes for dataframe and series in the conditions

GitOrigin-RevId: 658f2d5609852b00b7e1011c3841c7266c202686
This commit is contained in:
Ilia Zakoulov
2025-07-09 17:45:22 +00:00
committed by intellij-monorepo-bot
parent 709a7b14dc
commit 1c307c7934
23 changed files with 984 additions and 1 deletions
@@ -1278,8 +1278,13 @@ INSP.class.var.is.not.allowed.here='ClassVar' is not allowed here
INSP.class.var.not.a.valid.type=Not a valid type
# Pandas-Specific inspections and quick fixes
INSP.GROUP.pandas=Pandas
INSP.pandas.series.values.replace.with.tolist=Method Series.to_list() is recommended
QFIX.pandas.series.values.replace.with.tolist=Replace list(Series.values) with Series.to_list()
INSP.pandas.truth.value.is.ambiguous.df=The truth value of a DataFrame is ambiguous
INSP.pandas.truth.value.is.ambiguous.series=The truth value of a Series is ambiguous
QFIX.pandas.truth.value.is.ambiguous.emptiness.check=Replace with explicit emptiness check
QFIX.pandas.truth.value.is.ambiguous.none.check=Replace with explicit None check
# PyTypeParameterListAnnotator
type.param.list.annotator.type.parameter.already.defined=Type parameter with name ''{0}'' is already defined in this type parameter list