mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-14 17:42:03 +00:00
two new snippets for python-mode from Orestis Markou
This commit is contained in:
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
|
||||
Reference in New Issue
Block a user