Строки документации Sphinx и vscodePython

Программы на Python
Anonymous
Строки документации Sphinx и vscode

Сообщение Anonymous »

У меня есть следующая строка документации:

Код: Выделить всё

def test(foo):
"""this is my function

.. code-block:: python
cool function

now I should be outside the codeblock.
But I'm not?

.. code-block:: python
next function

I'm still inside the original codeblock?

:param foo: _description_
:type foo: _type_
"""
Что в VScode отображается следующим образом:
[img]https://i.stack. imgur.com/CRdby.png[/img]

Я неправильно пишу синтаксис, или у VScode просто проблемы с рендерингом формата sphinx?

Подробнее здесь: https://stackoverflow.com/questions/783 ... and-vscode

Вернуться в «Python»