@@ -43,23 +43,23 @@ def keyword_define_return_type(self, arg: str) -> None:
43
43
return None
44
44
45
45
@keyword
46
- def keyword_forward_references (self , arg : 'CustomObject' ):
46
+ def keyword_forward_references (self : 'DynamicTypesAnnotationsLibrary' , arg : 'CustomObject' ):
47
47
return arg
48
48
49
49
@keyword
50
- def keyword_with_annotations_and_default (self , arg : str = 'Foobar' ):
50
+ def keyword_with_annotations_and_default (self : 'DynamicTypesAnnotationsLibrary' , arg : str = 'Foobar' ):
51
51
return arg
52
52
53
53
@keyword
54
54
def keyword_with_webdriver (self , arg : CustomObject ):
55
55
return arg
56
56
57
57
@keyword
58
- def keyword_default_and_annotation (self , arg1 : int , arg2 = False ) -> str :
58
+ def keyword_default_and_annotation (self : 'DynamicTypesAnnotationsLibrary' , arg1 : int , arg2 = False ) -> str :
59
59
return '%s: %s, %s: %s' % (arg1 , type (arg1 ), arg2 , type (arg2 ))
60
60
61
61
@keyword (types = {'arg' : str })
62
- def keyword_robot_types_and_annotations (self , arg : int ):
62
+ def keyword_robot_types_and_annotations (self : 'DynamicTypesAnnotationsLibrary' , arg : int ):
63
63
return '%s: %s' % (arg , type (arg ))
64
64
65
65
@keyword (types = None )
@@ -71,7 +71,7 @@ def keyword_robot_types_and_bool_defaults(self, arg1, arg2=False):
71
71
return '%s: %s, %s: %s' % (arg1 , type (arg1 ), arg2 , type (arg2 ))
72
72
73
73
@keyword
74
- def keyword_exception_annotations (self , arg : 'NotHere' ):
74
+ def keyword_exception_annotations (self : 'DynamicTypesAnnotationsLibrary' , arg : 'NotHere' ):
75
75
return arg
76
76
77
77
@keyword
@@ -87,7 +87,7 @@ def keyword_only_arguments_no_vararg(self, *, other):
87
87
return f'{ other } : { type (other )} '
88
88
89
89
@keyword
90
- def keyword_only_arguments_many_positional_and_default (self , * varargs , one , two , three , four = True , five = None , six = False ):
90
+ def keyword_only_arguments_many_positional_and_default (self : 'DynamicTypesAnnotationsLibrary' , * varargs , one , two , three , four = True , five = None , six = False ):
91
91
return f'{ varargs } , { one } , { two } , { three } , { four } , { five } , { six } '
92
92
93
93
@keyword
@@ -103,5 +103,13 @@ def keyword_mandatory_and_keyword_only_arguments(self, arg: int, *vararg, some=T
103
103
return f'{ arg } , { vararg } , { some } '
104
104
105
105
@keyword
106
- def keyword_all_args (self , mandatory , positional = 1 , * varargs , other , value = False , ** kwargs ):
106
+ def keyword_all_args (self : 'DynamicTypesAnnotationsLibrary' , mandatory , positional = 1 , * varargs , other , value = False , ** kwargs ):
107
+ return True
108
+
109
+ @keyword
110
+ def keyword_self_and_types (self : 'DynamicTypesAnnotationsLibrary' , mandatory : str , * varargs , other : bool , ** kwargs ):
111
+ return True
112
+
113
+ @keyword
114
+ def keyword_self_and_keyword_only_types (self : 'DynamicTypesAnnotationsLibrary' , mandatory , * varargs , other : bool , ** kwargs ):
107
115
return True
0 commit comments