-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Many new and bogus "nitpick" warnings when upgrading to sphinx 1.7.0 #4609
Comments
Ah, the
(This is Google docstring format being processed via On 1.6.7, this was fine... it looks like it resolved via intersphinx to https://docs.python.org/3/library/constants.html#None |
The behavior was changed at #3927. At present, In addition, autodoc uses docstrings of super class by default: Thanks, |
- Make the fixes suggested here so our docs become compatible with sphinx 1.7.0: sphinx-doc/sphinx#4609 (comment) - Upgrade to sphinx 1.7.0
That does seem to have fixed it, thanks! |
See sphinx-doc/sphinx#4609 for more details.
Hello everyone, I'm not sure this bug has been completely fixed and muting the warnings doesn't look to be the best option. We noticed something weird when working on a PR for the jsonschema package. I've created a small repo with a (hopefully meaningful) proof of concept. When building the docs with The docs build environment is py27+py3 and sphinx apparently isn't able to link callable and functools.lru_cache, possibily others. I couldn't get to the bottom of the issue, so I can't be more specific and I may be wrong somewhere. I'd like your thoughts on the matter. thanks! |
So, I've only quickly glanced at #3927, so apologies if I've missed something obvious but @apiraino I think I understand what changed -- #3927 changed things so that only classes are matched, not all objects, and both I think that is really impractical though -- in many cases you do not have (public) access to a physical type, and calling a function is the "way" to produce those kinds of objects. #3927 definitely seems like a bug, but only matching classes seems wrong, it seems like it should match classes first but then fall back on everything to me. @tk0miya do you have any desire to reopen that ticket for discussion? (If so I bet we should move the discussion there) |
(Callable itself is another good example -- there's EDIT: on second thought I guess I take this one back, because it's a bit abusive to say the type is the callable function, callable just happens to link to a somewhat-helpful thing, so yeah never mind this objection. |
Problem
When building my docs nitpicky mode enabled, with sphinx 1.7.0 (but not 1.6.7), I get tons of new warnings, many of which look obviously bogus.
Procedure to reproduce the problem
Error logs / results
If we run the exact same commands, but using sphinx==1.6.7, then the build completes successfully with no warnings.
Note that "CapacityLimiter-like object" and "bytes-like" are both listed in conf.py's
nitpick_ignore
list, so they definitely shouldn't be triggering warnings.Also note all the error messages about "py:class reference target not found: None". The docs here don't attempt to refer to a class called
"None"
. It's hard to know what is actually triggering this.The text was updated successfully, but these errors were encountered: