mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 21:13:04 +00:00
two new snippets for python-mode from Orestis Markou
This commit is contained in:
parent
8adb9f49ee
commit
d05cb05a9d
7
snippets/text-mode/python-mode/class
Normal file
7
snippets/text-mode/python-mode/class
Normal file
@ -0,0 +1,7 @@
|
||||
#name : class ... :
|
||||
# --
|
||||
class ${1:cname}(${2:object}):
|
||||
"docstring for $1"
|
||||
def __init__(self, ${3:arg}):
|
||||
self.$3 = $3
|
||||
$0
|
5
snippets/text-mode/python-mode/def
Normal file
5
snippets/text-mode/python-mode/def
Normal file
@ -0,0 +1,5 @@
|
||||
#name : def ... :
|
||||
# --
|
||||
def ${1:fname}(${self}):
|
||||
"docstring for $1"
|
||||
${pass}$0
|
Loading…
x
Reference in New Issue
Block a user