Skip to content

Commit 11a1e75

Browse files
committed
Add comment
1 parent 0ab4b19 commit 11a1e75

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mypyc/irbuild/statement.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -955,6 +955,7 @@ def emit_yield_from_or_await(
955955
obj = builder.read(iter_reg)
956956
nn = builder.none_object()
957957
m = MethodCall(obj, helper_method, [nn, nn, nn, nn], line)
958+
# Generators have custom error handling, so disable normal error handling.
958959
m.error_kind = ERR_NEVER
959960
_y_init = builder.add(m)
960961
else:

0 commit comments

Comments
 (0)