Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c79fb19

Browse files
committed
Update test to reflect preserved type hint.
Overrides should be type-compatible.
1 parent cf78f3b commit c79fb19

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sdks/python/apache_beam/pipeline_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ def get_replacement_transform_for_applied_ptransform(
430430
self, applied_ptransform):
431431
return ToStringParDo().with_input_types(int).with_output_types(str)
432432

433-
for override, expected_type in [(NoTypeHintOverride(), typehints.Any),
433+
for override, expected_type in [(NoTypeHintOverride(), int),
434434
(WithTypeHintOverride(), str)]:
435435
p = TestPipeline()
436436
pcoll = (

0 commit comments

Comments
 (0)