mirror of
https://github.com/amix/vimrc
synced 2025-06-16 01:25:00 +08:00
Updated plugins
This commit is contained in:
@ -85,16 +85,15 @@ snippet adefm
|
||||
|
||||
# New Property
|
||||
snippet property
|
||||
def ${1:foo}():
|
||||
doc = "${2:The $1 property.}"
|
||||
def fget(self):
|
||||
${3:return self._$1}
|
||||
def fset(self, value):
|
||||
${4:self._$1 = value}
|
||||
def fdel(self):
|
||||
${0:del self._$1}
|
||||
return locals()
|
||||
$1 = property(**$1())
|
||||
@property
|
||||
def ${1:foo}(self) -> ${2:type}:
|
||||
"""${3:doc}"""
|
||||
return self._${1:foo}
|
||||
|
||||
@${1:foo}.setter
|
||||
def ${1:foo}(self, value: ${2:type}):
|
||||
self._${1:foo} = value
|
||||
|
||||
# Ifs
|
||||
snippet if
|
||||
if ${1:condition}:
|
||||
|
Reference in New Issue
Block a user