@@ -80,7 +80,7 @@ def test_keyword_new_type(lib_types):
8080
8181def test_keyword_return_type (lib_types ):
8282 types = lib_types .get_keyword_types ("keyword_define_return_type" )
83- assert types == {"arg" : str }
83+ assert types == {"arg" : str , 'return' : Union [ List [ str ], str ] }
8484
8585
8686def test_keyword_forward_references (lib_types ):
@@ -105,7 +105,7 @@ def test_keyword_with_annotation_external_class(lib_types):
105105
106106def test_keyword_with_annotation_and_default_part2 (lib_types ):
107107 types = lib_types .get_keyword_types ("keyword_default_and_annotation" )
108- assert types == {"arg1" : int , "arg2" : Union [bool , str ]}
108+ assert types == {"arg1" : int , "arg2" : Union [bool , str ], 'return' : str }
109109
110110
111111def test_keyword_with_robot_types_and_annotations (lib_types ):
@@ -125,7 +125,7 @@ def test_keyword_with_robot_types_and_bool_annotations(lib_types):
125125
126126def test_init_args (lib_types ):
127127 types = lib_types .get_keyword_types ("__init__" )
128- assert types == {"arg" : str }
128+ assert types == {"arg" : str , "return" : type ( None ) }
129129
130130
131131def test_dummy_magic_method (lib ):
@@ -140,7 +140,7 @@ def test_varargs(lib):
140140
141141def test_init_args_with_annotation (lib_types ):
142142 types = lib_types .get_keyword_types ("__init__" )
143- assert types == {"arg" : str }
143+ assert types == {"arg" : str , "return" : type ( None ) }
144144
145145
146146def test_exception_in_annotations (lib_types ):
0 commit comments