From d038813fd1a8c740fc0a362756263ec32b119069 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Wed, 13 Feb 2019 13:52:15 +0100 Subject: Improve doctric snippets for Python (remove docstring_rtype and docstring_type) --- .emacs.d/snippets/python-mode/.yas-setup.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.emacs.d/snippets/python-mode/.yas-setup.el') 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 @@ (max-len (if args (apply 'max (mapcar (lambda (x) (length (nth 0 x))) args)) 0)) (formatted-args (mapconcat (lambda (x) - (concat ":param " (nth 0 x) ":\n:type " (nth 0 x) ": object\n" + (concat ":param " (nth 0 x) ":\n:type " (nth 0 x) ":\n" (if (nth 1 x) (concat "\(default " (nth 1 x) "\)")))) args indent))) -- cgit v1.3