[used-before-assignment] Functions defined in type-checking guard not flagged when used later #10028
Labels
C: used-before-assignment
Issues related to 'used-before-assignment' check
False Negative 🦋
No message is emitted but something is wrong with the code
Needs PR
This issue is accepted, sufficiently specified and now needs an implementation
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.
The text was updated successfully, but these errors were encountered: