Files
emacs/lisp/yasnippet-snippets/snippets/python-mode/function_docstring
2025-03-11 21:14:26 +01:00

12 lines
234 B
Plaintext

# -*- mode: snippet -*-
# name: function_docstring
# key: fd
# group: definitions
# Use minimum indentation, because Emacs 25+ doesn't dedent docstrings.
# --
def ${1:name}($2):
\"\"\"$3
${2:$(python-args-to-docstring)}
\"\"\"
$0