NoReturn
behaving unexpectedly after using the decorator with added type annotation
#6391
Labels
bug
Something isn't working
fixed in next version (pyright)
A fix has been implemented and will appear in an upcoming version
Environment data
Code Snippet
Repro Steps
Expected behavior
The
int_or_str
variables in lines 33 and 40 both should be recognized asstr
typeActual behavior
The
int_or_str
variables in line 40 still be recognized asint | str
typeLogs
Logs
The text was updated successfully, but these errors were encountered: