diff options
| author | Simeon Simeonov | 2019-02-13 13:52:15 +0100 |
|---|---|---|
| committer | Simeon Simeonov | 2019-02-13 13:52:15 +0100 |
| commit | d038813fd1a8c740fc0a362756263ec32b119069 (patch) | |
| tree | 3a8edd4a6db948b1d49bccc87d06d80af47da040 /.emacs.d/snippets/python-mode/.yas-setup.el | |
| parent | 2cedbc8447249de5c8189619be6e0d54b585a5b1 (diff) | |
Improve doctric snippets for Python (remove docstring_rtype and docstring_type)
Diffstat (limited to '.emacs.d/snippets/python-mode/.yas-setup.el')
| -rw-r--r-- | .emacs.d/snippets/python-mode/.yas-setup.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.emacs.d/snippets/python-mode/.yas-setup.el b/.emacs.d/snippets/python-mode/.yas-setup.el index 2f52c4f..7603e4d 100644 --- a/.emacs.d/snippets/python-mode/.yas-setup.el +++ b/.emacs.d/snippets/python-mode/.yas-setup.el | |||
| @@ -14,7 +14,7 @@ | |||
| 14 | (max-len (if args (apply 'max (mapcar (lambda (x) (length (nth 0 x))) args)) 0)) | 14 | (max-len (if args (apply 'max (mapcar (lambda (x) (length (nth 0 x))) args)) 0)) |
| 15 | (formatted-args (mapconcat | 15 | (formatted-args (mapconcat |
| 16 | (lambda (x) | 16 | (lambda (x) |
| 17 | (concat ":param " (nth 0 x) ":\n:type " (nth 0 x) ": object\n" | 17 | (concat ":param " (nth 0 x) ":\n:type " (nth 0 x) ":\n" |
| 18 | (if (nth 1 x) (concat "\(default " (nth 1 x) "\)")))) | 18 | (if (nth 1 x) (concat "\(default " (nth 1 x) "\)")))) |
| 19 | args | 19 | args |
| 20 | indent))) | 20 | indent))) |
