mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-21 12:14:37 +07:00
15 lines
293 B
Python
15 lines
293 B
Python
import sys
|
|
import textwrap
|
|
|
|
import rest_formatter
|
|
from sphinxcontrib.napoleon.docstring import NumpyDocstring
|
|
|
|
|
|
def main(text=None):
|
|
src = sys.stdin.read() if text is None else text
|
|
rest_formatter.main(str(NumpyDocstring(textwrap.dedent(src))))
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|