Skip to content

False positive for unresolved-reference #3157

@JasonGrace2282

Description

@JasonGrace2282

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions