Browse Source

more python snippets

master
Julio Biason 10 years ago
parent
commit
70f7e69569
  1. 8
      UltiSnips/python.snippets

8
UltiSnips/python.snippets

@ -7,7 +7,7 @@ $0
endsnippet endsnippet
snippet class "Starting a Python class" snippet class "Starting a Python class"
class ${1:ClassName}(${2:extends}): class ${1:ClassName}(${2:object}):
"""${3:Class documentation}""" """${3:Class documentation}"""
@ -22,3 +22,9 @@ snippet from "Import a module from another"
from ${1:source} import ${2:module} from ${1:source} import ${2:module}
$0 $0
endsnippet endsnippet
snippet def "Function"
def ${1:function name}(${2:parameters}):
"""${3:Function description}"""
$0
endsnippet

Loading…
Cancel
Save