RUF011
possible false positive for optional unwrapping in dict comprehension
#9548
Labels
bug
Something isn't working
Hi 👋!
I have a piece of code raising
from
ruff check .
since the update from ruff 0.1.11 to 0.1.13.This is the piece of code in question:
https://github.com/XKNX/xknxproject/blob/73088e13bfcd11f4dc03963bf2c8ef4776972e68/xknxproject/loader/knx_master_loader.py#L70-L75
A short version of it:
I would expect
attr
not to be treated as static key here since it should (depending on the xml source) be different for every iteration of the comprehension.Here is my ruff section from pyproject.toml:
The text was updated successfully, but these errors were encountered: