Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOGS.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Change Logs
===========

0.3.0
+++++

* :pr:`27`: fix missing __text_signature__ in docassert

0.2.0
+++++

Expand Down
2 changes: 2 additions & 0 deletions _doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,6 @@ Sources available on
Older versions
++++++++++++++

* `0.3.0 <../v0.3.0/index.html>`_
* `0.2.0 <../v0.2.0/index.html>`_
* `0.1.0 <../v0.1.0/index.html>`_
5 changes: 4 additions & 1 deletion sphinx_runpython/docassert/sphinx_docassert_extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,10 @@ def check_item(fieldarg, content, logger):
obj = import_any_object(idocname)
else:
obj = import_object(idocname, kind=kind)
tsig = getattr(obj[0], "__text_signature__")
try:
tsig = getattr(obj[0], "__text_signature__")
except AttributeError:
tsig = "?"
if tsig != "($self, /, *args, **kwargs)":
logger.warning(
"[docassert] %r has no parameter %r (in %r) [sig=%r]%s.",
Expand Down