summaryrefslogtreecommitdiff
path: root/.emacs.d/snippets/python-mode/function_docstring
diff options
context:
space:
mode:
authorSimeon Simeonov2019-02-13 13:52:15 +0100
committerSimeon Simeonov2019-02-13 13:52:15 +0100
commitd038813fd1a8c740fc0a362756263ec32b119069 (patch)
tree3a8edd4a6db948b1d49bccc87d06d80af47da040 /.emacs.d/snippets/python-mode/function_docstring
parent2cedbc8447249de5c8189619be6e0d54b585a5b1 (diff)
Improve doctric snippets for Python (remove docstring_rtype and docstring_type)
Diffstat (limited to '.emacs.d/snippets/python-mode/function_docstring')
-rw-r--r--.emacs.d/snippets/python-mode/function_docstring8
1 files changed, 4 insertions, 4 deletions
diff --git a/.emacs.d/snippets/python-mode/function_docstring b/.emacs.d/snippets/python-mode/function_docstring
index f372d26..685eaf5 100644
--- a/.emacs.d/snippets/python-mode/function_docstring
+++ b/.emacs.d/snippets/python-mode/function_docstring
@@ -5,7 +5,7 @@
5# NOTE: Use minimum indentation, because Emacs 25+ doesn't dedent docstrings. 5# NOTE: Use minimum indentation, because Emacs 25+ doesn't dedent docstrings.
6# -- 6# --
7def ${1:name}($2): 7def ${1:name}($2):
8 \"\"\"$3 8 \"\"\"$3
9 ${2:$(python-args-to-docstring)} 9 ${2:$(python-args-to-docstring)}
10 \"\"\" 10 \"\"\"
11 $0 \ No newline at end of file 11 $0 \ No newline at end of file