Post #88 1.54K Jun 27, 2025, 21:26 UTC https://github.com/wemake-services/wemake-python-styleguide/issues/2340#wemake_python_styleguide #ast GitHub Detect leaking `for` loops in `ClassDef` and `Module` · Issue #2340 · wemake-services/wemake-python-styleguide Right now we can have two problems: class Some(object): for x in [1, 2]: print(x) print(Some.x) # oups, will show you `2` and with modules: # some.py for x in [1, 2]: print(x) # __main__ import som... 👍 3 ❤ 1