-
-
Notifications
You must be signed in to change notification settings - Fork 167
Adding object infos to be able to raise meaningful location info #123
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
Looking at the tests and current failures, I wonder whether it's better to make |
|
OK, I'll move it to be optional param. If you have a suggestion for a better name, it would be great. |
I can't judge the seriousness of the 2nd test failure for the py3.6 cases, whether the fix in the PR has to be modified or rather the test. |
as far as I can tell, both those failures are true failures. You've somehow used fully qualified names for attribute reference where they used to be (and the test ensures they are) just the attribute name. |
However, if you test it on real class docs (e.g. adding to example.py and fixing #133 at the same time), and it produces functional output, we could consider changing the test. |
@bsipocz are you still working on this? |
@jnothman - I don't have time atm, but will definitely plan to come back and finish this off in a few weeks time if that's OK for you. |
This patch is a huge improvement on the current error reporting. Can we merge as is and iterate from there? |
Well we should at least fix tests |
Yes, true that :) |
Hey Numpydoc-Devs, is this still being worked on? I've just bumped into this issue today and finding out where this duplicate Notes field is would help me quite a lot:
|
Hi @ChristianLieven, seems like it's close to ready but has stalled. It looks like we'd want to merge it if the tests are updated so they pass here. If you're interested in looking into that, that would be very helpful. |
I'm sorry to drop the ball on this, but happy to see that the issue ultimately has been solved. |
Fixes #115.
The example below has an invalid
Return
section in one of the doctrings, and in another one a duplicateExamples
section. The invalidReturn
section is still warned over twice, but I take it as an improvement compared to the original 4 times.I still need to add tests, and probably fix currently failing ones, but would first like to get the opinions whether you like this approach or not.
With master
With this PR: