restored yasnippet
This commit is contained in:
parent
ac01f235cc
commit
103dbcd8d0
573 changed files with 71124 additions and 0 deletions
16
vendor/yasnippet/snippets/python-mode/prop
vendored
Normal file
16
vendor/yasnippet/snippets/python-mode/prop
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
# contributor: Mads D. Kristensen <madsdk@gmail.com>
|
||||
# name: prop
|
||||
# key: prop
|
||||
# --
|
||||
def ${1:foo}():
|
||||
doc = """${2:Doc string}"""
|
||||
def fget(self):
|
||||
return self._$1
|
||||
def fset(self, value):
|
||||
self._$1 = value
|
||||
def fdel(self):
|
||||
del self._$1
|
||||
return locals()
|
||||
$1 = property(**$1())
|
||||
|
||||
$0
|
Loading…
Add table
Add a link
Reference in a new issue