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