You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following on from #196 - sorry, I probably should have highlighted methods as important to me.
When docsig checks the following code:
classSomeClass:
@overloaddefprocess(self, response: None) ->None:
...
@overloaddefprocess(self, response: int) ->tuple[int, str]:
...
@overloaddefprocess(self, response: bytes) ->str:
...
defprocess(self, response):
"""process a response. :param response: the response to process :return: something depending on what the response is """
... # actual implementation goes here
I get the following error:
no_vc/test_docsig_methods.py:12 in SomeClass
--------------------------------------------
def process(✖None) -> ✓str:
"""
:param response: ✖
:return: ✓
"""
E102: includes parameters that do not exist
I had a go debugging and think I've tracked down the issue:
Then, when creating the _Signature, docsig pops the first argument if the relevant function is a (non-static) method, which in this case is the 'actual' first argument response.
The text was updated successfully, but these errors were encountered:
Following on from #196 - sorry, I probably should have highlighted methods as important to me.
When
docsig
checks the following code:I get the following error:
I had a go debugging and think I've tracked down the issue:
inserting:
just before this line
and then running
subnode.args.arguments
shows that theself
argument isn't prevent, as it appears to be for a non-overload
-ed method:debugging session:
Then, when creating the
_Signature
,docsig
pops the first argument if the relevant function is a (non-static) method, which in this case is the 'actual' first argumentresponse
.The text was updated successfully, but these errors were encountered: