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

Fix docstring cross-references #9873

Closed
twisted-trac opened this issue Jun 23, 2020 · 3 comments
Closed

Fix docstring cross-references #9873

twisted-trac opened this issue Jun 23, 2020 · 3 comments

Comments

@twisted-trac
Copy link

mthuurne's avatar @mthuurne reported
Trac ID trac#9873
Type defect
Created 2020-06-23 09:09:16Z

I made pydoctor complain if an L{identifier} cross-reference cannot be resolved. This is the result when run on Twisted trunk:

src/twisted/cred/credentials.py:31: invalid ref to 'zope.interface.declarations.implementer' not resolved
src/twisted/internet/defer.py:1534: invalid ref to 'inlineCallback' not resolved
src/twisted/logger/_json.py:182: invalid ref to 'dumps' not resolved
src/twisted/logger/_json.py:182: invalid ref to 'dumps' not resolved
src/twisted/names/authority.py:61: invalid ref to 'byte' not resolved
src/twisted/web/_element.py:30: invalid ref to 'zope.interface.declarations.implementer' not resolved
src/twisted/web/_auth/wrapper.py:189: invalid ref to 'ResourceWrapper' not resolved
src/twisted/web/_auth/wrapper.py:189: invalid ref to 'ResourceWrapper' not resolved
src/twisted/words/xish/domish.py:264: invalid ref to 'stre' not resolved
src/twisted/words/xish/domish.py:524: invalid ref to 'stre' not resolved
  • byte, stre and inlineCallback are typos
  • dumps is json.dumps, but pydoctor fails to resolve this
  • ResourceWrapper is an inner class cross-referencing itself
  • zope.interface.declarations.implementer is documented only under its shorter name zope.interface.implementer

I'll create a PR to solve at least some of these.

Searchable metadata
trac-id__9873 9873
type__defect defect
reporter__mthuurne mthuurne
priority__normal normal
milestone__None None
branch__ 
branch_author__ 
status__closed closed
resolution__fixed fixed
component__core core
keywords__review review
time__1592903356008865 1592903356008865
changetime__1592975910721211 1592975910721211
version__None None
owner__mthuurne mthuurne

@twisted-trac
Copy link
Author

mthuurne's avatar @mthuurne commented

PR is here: #1318

I didn't address dumps and ResourceWrapper, since those references are in inner functions that will no longer be processed once pydoctor PR 196 gets merged.

@twisted-trac
Copy link
Author

rodrigc's avatar @rodrigc set owner to @mthuurne

Approved here: #1318 (review)

@twisted-trac
Copy link
Author

mthuurne's avatar @mthuurne set status to closed

In changeset fd50e9e

#!CommitTicketReference repository="" revision="fd50e9e29003f7e3ed789190d27e125954d19ef3"
Merge pull request #1318 from twisted/9873-mthuurne-docstringxref

Fix docstring cross-references

Author: mthuurne
Reviewer: rodrigc
Fixes: ticket:9873

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

No branches or pull requests

1 participant