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
file content(at least simple cpython script shows that this is valid python file):
class DockerVmManager(VmManager):
try:U=H.image_from_ami_id(A,verify=_A)
except InvalidAMIIdError as J:
if A in B.amis.keys()and B.amis[A].get_filter_value(_H)==_C:LOG.debug(f"Deregistering AMI '{A}' because it no longer exists in Docker");B.amis.pop(A,_B)
error
/home/rafal/test/tmp_folder/1378887.py:4:7: SIM118 Use `A in B.amis` instead of `A in B.amis.keys()`
Found 1 error.
error: Autofix introduced a syntax error. Reverting all changes.
This indicates a bug in `ruff`. If you could open an issue at:
https://github.com/astral-sh/ruff/issues/new?title=%5BAutofix%20error%5D
...quoting the contents of `/home/rafal/test/tmp_folder/1378887.py`, the rule codes SIM118, along with the `pyproject.toml` settings and executed command, we'd be very appreciative!
Again a whitespace problem, we're removing the .keys() method but there's no whitespace between the call and the keyword and, it get's merged into the attribute:
- if A in B.amis.keys()and B.amis[A]+ if A in B.amisand B.amis[A]
Ruff 0.0.287 (latest changes from main branch)
file content(at least simple cpython script shows that this is valid python file):
error
python_compressed.zip
The text was updated successfully, but these errors were encountered: