Skip to content

Commit

Permalink
Merge pull request #5 from cag/fix-py-incompat
Browse files Browse the repository at this point in the history
Fixed crash when using alongside Python autodoc
  • Loading branch information
cag committed Dec 4, 2018
2 parents f79353e + cdc0d8f commit 1c0f522
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sphinxcontrib/soliditydomain/documenters.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ class SolidityObjectDocumenter(Documenter):
'exclude-members': members_set_option,
}

@classmethod
def can_document_member(cls, member, membername, isattr, parent):
# type: (Any, unicode, bool, Any) -> bool
"""Called to see if a member of a Python object can be documented by this documenter.
Will always answer no because this Documenter is built for Solidity."""
return False

def get_sourcename(self):
return '{}:docstring of {} {}'.format(
self.object.file,
Expand Down

0 comments on commit 1c0f522

Please sign in to comment.