Label unreachable for Generator[..., ..., NoReturn] #6479
Closed
GreyElaina
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
The current behavior is intended. Only explicit function calls are evaluated reachability analysis. Evaluating all implicit magic methods for this purpose would be extremely expensive at analysis time. This needs to be done on a "hot path" during code flow analysis. It wouldn't be a good tradeoff to significantly slow down analysis time for all code just to support such an edge case as the one above. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Beta Was this translation helpful? Give feedback.
All reactions