Type of type
incorrectly narrowed to type[object]
#9656
Labels
addressed in next version
Issue is fixed and will appear in next published version
bug
Something isn't working
If I call
issubclass
on an unboundtype
variable (ortype[Any]
), then the else-branch will narrow it totype[object]
.This will then cause an error when using
my_type(somevalue)
to instantiate that type.output:
VS Code extension or command-line
VScode extension in current version and pyright 1.1.391
The text was updated successfully, but these errors were encountered: