Add syntax error check for control flow within except*
block
#9413
Labels
addressed in next version
Issue is fixed and will appear in next published version
enhancement request
New feature or request
Control flow statements
break
,continue
, andreturn
are not allowed to occur within anexcept*
clause of atry
statement. This results in a syntax error at runtime. Pyright should report this as a syntax error.This comes from the mypy issue tracker: python/mypy#18123.
The text was updated successfully, but these errors were encountered: