From 70f7e69569237dd9639a6bfb8e3a17dc70ad0f01 Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Thu, 24 Jul 2014 09:11:43 -0300 Subject: [PATCH] more python snippets --- UltiSnips/python.snippets | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/UltiSnips/python.snippets b/UltiSnips/python.snippets index b50dfca..d54488e 100644 --- a/UltiSnips/python.snippets +++ b/UltiSnips/python.snippets @@ -7,7 +7,7 @@ $0 endsnippet snippet class "Starting a Python class" -class ${1:ClassName}(${2:extends}): +class ${1:ClassName}(${2:object}): """${3:Class documentation}""" @@ -22,3 +22,9 @@ snippet from "Import a module from another" from ${1:source} import ${2:module} $0 endsnippet + +snippet def "Function" +def ${1:function name}(${2:parameters}): + """${3:Function description}""" + $0 +endsnippet