-
-
Notifications
You must be signed in to change notification settings - Fork 513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Makes CallSignature.call_signature() #780
Conversation
It is same result as in docstring, ie method .doc, ie property. So it is with "self" -i dont like it, but no other way, easy.
Tests? I'm not sure about the naming yet, but agree that we should have something like this. |
Was wrong test, now its fixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. Somehow github didn't show me both commits. You fixed it well.
assert len(signatures) <= 1 | ||
|
||
if signatures: | ||
assert signatures[0].call_signature == expected_string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should be an
else:
assert expected_string is None
there.
The test below is probably running into this.
it is fixed. |
Sorry for taking so long on this, but I didn't like what we came up with as the API together. It took a long time to develop another one, because the old internals didn't support what we were doing at the time. Now there's `[signature.to_string() for signature in definition.get_signatures()]. Thanks for your patience. |
It is same result as in docstring, ie method .doc, ie property. So it is with "self" (for methods) -i dont like it, but no other way, easy.