Using the robotframework-requests library with the Robot language server plugin for vs code. I have noticed that auto-complete does is not aware of the arguments for all of the keywords. instead, it reports *args and **kwargs.
This is due to the decorator functions warn_if_equal_symbol_in_url_on_session and warn_if_equal_symbol_in_url_session_less not shadowing the original function signature.
Adding decorator.__signature__ = inspect.signature(func) inside the two wrapping functions fixes this issue.
Alternatively, we can get rid of the manual assignments and user the warps decorator from the standard functools library
Using the robotframework-requests library with the Robot language server plugin for vs code. I have noticed that auto-complete does is not aware of the arguments for all of the keywords. instead, it reports
*args and **kwargs
.This is due to the decorator functions
warn_if_equal_symbol_in_url_on_session
andwarn_if_equal_symbol_in_url_session_less
not shadowing the original function signature.Adding
decorator.__signature__ = inspect.signature(func)
inside the two wrapping functions fixes this issue.Alternatively, we can get rid of the manual assignments and user the warps decorator from the standard functools library