Как указать типы списков, необязательные аргументы и типы возвращаемых данных для генераторов в докстронах в стиле Google с использованием Sphinx-Napoleon?
Я пробовал
List[type]
list of type
Optional[type]
type, optional
и
Yields:
type:
соответственно; но все они создают неудовлетворительный результат, который не согласуется с остальной частью сгенерированной документации. Например
Optional[type]
просто дает
Необязательный [тип]
без ссылки для type
.
Я пробовал каждую встроенную тему и имел те же проблемы.
Как я должен документировать эти элементы, используя docstrings в стиле Google с Sphinx-Napoleon?