-
-
Notifications
You must be signed in to change notification settings - Fork 167
FIX parsing of type-only return params #175
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
Conversation
Note: CI currently fails because of pip changes (#174). |
if you've not had to modify any tests, how do we know this affects output?
|
As said above, I didn't run any tests so far myself. It's apparent that one parser for "Parameters" and "Returns" cannot get both right. I'm confident that the proposed code change itself is correct. What has to be still shown is that the calling code and tests work with that (it might be that they partly compensate for the original bug or that this effect is not tested as all). I thought I'd use the tests in CI for that, but CI is already prematurely failing for different reasons. |
d6709d9
to
c1c0126
Compare
Rebased onto master. Note: The tests do currently fail. Waiting for #176 before doing any further changes to fix tests. |
c1c0126
to
4d858d0
Compare
PR updated. Single element returns params such as:
were detected as names. I.e. As a consequence, |
ping? |
@timhoffm can you rebase? Then I can take a look and hopefully merge |
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.
Other than the conflict, LGTM +1 for merge
4d858d0
to
2a0fe75
Compare
I've taken the liberty of fixing the merge conflict. The only nontrivial change was deciding where the new heading |
2a0fe75
to
9e3607a
Compare
9e3607a
to
3edcef7
Compare
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.
LGTM +1 for merge
This is funny. I am a programmer and a member of github, but you missed adding an “m" to the end of the address. It should be @timhoffm. LOL
… On Apr 10, 2019, at 9:52 AM, Ralf Gommers ***@***.***> wrote:
Okay in it goes. Thanks @timhoff <https://github.com/timhoff>, and sorry it took a while! And thanks @larsoner <https://github.com/larsoner> for reviewing
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#175 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAUFPcnOS0fLprMfPFZCxNUIUeR0rjQ-ks5vfhbXgaJpZM4TwQxl>.
|
Fixes #72.
The sections "Parameters" and "Returns" have different semantics for single-element parameter headers. For "Parameters", the header is the name, for "Returns" the header is the type. This was not reflected in the code as both sections used the same parser.
Note: This is just a quick write-up how the code should work. I've not yet let run the tests (they may need fixing as well as mentioned in #72). But for brevity I'll let CI decide on that.