summaryrefslogtreecommitdiff
path: root/python-mode/function_docstring
diff options
context:
space:
mode:
Diffstat (limited to 'python-mode/function_docstring')
-rw-r--r--python-mode/function_docstring10
1 files changed, 10 insertions, 0 deletions
diff --git a/python-mode/function_docstring b/python-mode/function_docstring
new file mode 100644
index 0000000..1f7f35b
--- /dev/null
+++ b/python-mode/function_docstring
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# name: function_docstring
+# key: fd
+# group: definitions
+# --
+def ${1:name}($2):
+ \"\"\"$3
+ ${2:$(python-args-to-docstring)}
+ \"\"\"
+ $0 \ No newline at end of file