From b2656d34db865d68696fd0d9e1fbc908dd805d80 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 18 Jul 2019 20:43:44 +0200 Subject: [PATCH] documentation/python: added TODOs for enum value docs. --- documentation/python.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/documentation/python.py b/documentation/python.py index 3b8a202d..169b2fa0 100755 --- a/documentation/python.py +++ b/documentation/python.py @@ -949,10 +949,12 @@ def extract_enum_doc(state: State, entry: Empty): # Value doc gets by default inherited from the enum, that's useless if i.__doc__ == entry.object.__doc__: - value.summary = '' + docstring = '' else: - # TODO: external summary for enum values - value.summary = extract_summary(state, {}, [], i.__doc__) + docstring = i.__doc__ + + # TODO: external summary for enum values + value.summary = extract_summary(state, {}, [], docstring) if value.summary: out.has_details = True @@ -975,6 +977,7 @@ def extract_enum_doc(state: State, entry: Empty): # TODO: once https://github.com/pybind/pybind11/pull/1160 is # released, extract from class docs (until then the class # docstring is duplicated here, which is useless) + # TODO: external summary for enum values value.summary = '' out.values += [value] -- 2.30.2