Skip to content

[used-before-assignment] Functions defined in type-checking guard not flagged when used later #10028

@jacobtylerwalls

Description

@jacobtylerwalls

In #9990, we discovered that extending the fix for false negatives for used-before-assignment for objects guarded behind type-checking blocks to include functions would cause a handful of false positives in the primer. So we backed out that change and opened this issue to investigate.

@zenlyj graciously offered to find time to look into it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: used-before-assignmentIssues related to 'used-before-assignment' checkFalse Negative 🦋No message is emitted but something is wrong with the codeNeeds PRThis issue is accepted, sufficiently specified and now needs an implementation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions