We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d8e855 commit f878e5dCopy full SHA for f878e5d
src/SeleniumLibrary/base/robotlibcore.py
@@ -145,6 +145,11 @@ def __get_typing_hints(self, method):
145
except Exception:
146
hints = method.__annotations__
147
hints.pop('return', None)
148
+ spec = ArgumentSpec.from_function(method)
149
+ for arg in hints.copy():
150
+ # Drop self
151
+ if arg not in spec.positional and arg not in spec.kwonlyargs:
152
+ hints.pop(arg)
153
return hints
154
155
def __join_defaults_with_types(self, method, types):
0 commit comments