Skip to content
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

Closed
wants to merge 3 commits into from
Closed

Makes CallSignature.call_signature() #780

wants to merge 3 commits into from

Conversation

Alexey-T
Copy link
Contributor

@Alexey-T Alexey-T commented Sep 23, 2016

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.

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.
@davidhalter
Copy link
Owner

Tests? I'm not sure about the naming yet, but agree that we should have something like this.

@Alexey-T
Copy link
Contributor Author

Alexey-T commented Sep 23, 2016

Was wrong test, now its fixed

Copy link
Owner

@davidhalter davidhalter left a 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
Copy link
Owner

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.

@Alexey-T
Copy link
Contributor Author

it is fixed.

@davidhalter
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants