Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
BUG: Defer to autodoc for signatures #221
BUG: Defer to autodoc for signatures #221
Changes from 9 commits
0beccb2
4022f5f
8e468cf
3f7f7ce
96216c0
56d621b
d2b943e
3c6d16d
aa2189d
339cf8a
5df5f28
88aaa5f
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
I don't think it'll happen often, but I'm still not comfortable with the fact that this processes all parts of the sig. Can't we check explicitly that the
/
precedes a*
, and that the$
is at the beginning, rather than use the split and join logic?Is this not sufficient?
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.
I'll confess that I have (almost) no understanding of how these C text signature things work.
What you have would make it so
func($self)
would still befunc($self)
. Is that alright? I have no idea what the possible syntax is for this.If you (or someone else) has some kind of documentation on what is possible, that would make this back-and-forth much easier.
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.
Sorry, I meant to apply those substitutions after
They're just a bit more careful than splitting on every comma.
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.
Actually I think this makes sense. Let me change that.
To handle
func($self)
, I guess you could just add a’, ‘
right before your code. Then use regex to strip off a trailing’, ‘
if it exists.Do you think that would work?
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.
Sorry, didn't handle that case, did I?
Can use
r'^\$(self|module|type)(, |$))?'
which will strip a comma, or check that we're at the end.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.
Take a peek at this. I had to do something to check whether the
/
was the start of the string or preceded by a,
.