Derived from the refurb linter.
Fix is sometimes available.
This rule is unstable and in preview. The
--preview flag is required for use.
What it does#
del statements that delete the entire slice of a list or
Why is this bad?#
It's is faster and more succinct to remove all items via the
This rule is prone to false negatives due to type inference limitations, as it will only detect lists and dictionaries that are instantiated as literals or annotated with a type annotation.