Skip to content

Commit 8ff43e7

Browse files
committed
correct comment
1 parent 6e5786f commit 8ff43e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sdks/python/apache_beam/typehints/trivial_inference.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -521,9 +521,9 @@ def infer_return_type_func(f, input_types, debug=False, depth=0):
521521
# stack[-1 - has_kwargs]: Iterable of positional args.
522522
# stack[-2 - has_kwargs]: Function to call.
523523
if arg is None:
524-
# CALL_FUNCTION_EX does not take an arg in 3.14
525-
# This is an undocumented change. Instead, always,
526-
# assume there are kwargs.
524+
# CALL_FUNCTION_EX does not take an arg in 3.14, instead the
525+
# signaling for kwargs is done via a PUSH_NULL instruction
526+
# right before CALL_FUNCTION_EX.
527527
arg = ~last_op_push_null & 1
528528
has_kwargs: int = arg & 1
529529
pop_count = has_kwargs + 2

0 commit comments

Comments
 (0)