used-dummy-variable
(RUF052
) - false positive on private global variable when it has a usage in two functions #14996
Open
Description
opened on Dec 16, 2024
_bar: int
def foo():
global _bar # error: Local dummy variable `_bar` is accessed
_bar = 1
def baz():
print(_bar)
Activity