Used before def false positive when aliasing builtin definition #14476
Labels
bug
mypy got something wrong
false-positive
mypy gave an error on correct code
topic-possibly-undefined
possibly-undefined error code
The first error is a false positive, since
range
is available in builtins:This is not reported consistently. In this case there is no error:
I assume the error is only generated when we perform two or more semantic analysis passes.
This is a regression introduced in #14166.
The text was updated successfully, but these errors were encountered: