From 3f37a7acd131038de82d2808cfcbd58745811457 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 6 Sep 2019 12:27:22 +0200 Subject: [PATCH] Various bits to improve code coverage. --- documentation/test_python/content/docs.rst | 2 ++ plugins/m/sphinx.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/documentation/test_python/content/docs.rst b/documentation/test_python/content/docs.rst index 1486c027..fd02d935 100644 --- a/documentation/test_python/content/docs.rst +++ b/documentation/test_python/content/docs.rst @@ -130,6 +130,8 @@ The :p:`b` is not documented, while :p:`c` isn't in the signature. +Doing :p:`this` here is not good either. + .. py:function:: content.full_docstring :param a: First parameter :param b: Second diff --git a/plugins/m/sphinx.py b/plugins/m/sphinx.py index 8792b56c..1b8aba75 100755 --- a/plugins/m/sphinx.py +++ b/plugins/m/sphinx.py @@ -408,7 +408,7 @@ def consume_docstring(type, path: List[str], signature: Optional[str], doc: str) elif type.name == 'PROPERTY': source = '.. py:property:: ' doc_output = property_doc_output - else: + else: # pragma: no cover # Data don't have docstrings, you silly assert type.name != 'DATA' # Ignore unknown types, pass the docs through -- 2.30.2