You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the report. I believe this is the current limitation of many rules where they don't try to resolve the type of a variable. It will only check if it's a literal expression like [], {}, etc.
Hi
I found a case where my expectations does not meet the results reported by ruff. But first, let's start with the issue basics:
ruff 0.4.0
ruff check case.py --select ALL --ignore D,FA --isolated
Where my
case.py
contains the following lines:I would have hoped that this would be detected by rule B006 (or any other rule), but sadly it is not.
However, the rule detects the issue if instead of
DEFAULT_ENTRIES
we use[]
.Thanks for checking!
The text was updated successfully, but these errors were encountered: