Deduction of a possible None return although NoReturn seems to be the only way out #967
Labels
bug
Something isn't working
fixed in next version (main)
A fix has been implemented and will appear in an upcoming version
Environment data
Expected behaviour
no typing problem reported.
Actual behaviour
I isolated the issue I encountered in the short following example.
It includes 4 use cases progressively more complex:
fa1
,fa2
,fa3
,fa4
.Only the last
fa4
fails with the following message:Function with declared type of "NoReturn" cannot return "None"
The issue seems closely related to
NoReturn
since there is no reported problem when the example is a bit modified and all functions returnint
.Code Snippet / Additional information
The text was updated successfully, but these errors were encountered: