-
Notifications
You must be signed in to change notification settings - Fork 276
False positive for unresolved-reference #3157
Copy link
Copy link
Closed
astral-sh/ruff
#24279Description
Summary
The following claims that PULL_SUMS is used without being defined, which is not the case.
PULL_SUMS: "list[float]" = []
def bandit(foo: int) -> None:
global PULL_SUMS
if foo == 0:
# commenting this out fixes it
PULL_SUMS = []
return
def bar(arm):
return PULL_SUMS[arm]Version
ty 0.0.26
Reactions are currently unavailable