Fix error in def snippet when inside of a class
This commit is contained in:
parent
da49b4b7c4
commit
91ecf6aec4
@ -323,7 +323,9 @@ def __coerce__(self, other):
|
|||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet def "function with docstrings" b
|
snippet def "function with docstrings" b
|
||||||
def ${1:function}(`!p if snip.indent: snip.rv = 'self, '`${2:arg1}):
|
def ${1:function}(`!p
|
||||||
|
if snip.indent:
|
||||||
|
snip.rv = 'self' + (", " if len(t[2]) else "")`${2:arg1}):
|
||||||
"""${4:@todo: Docstring for $1}`!p
|
"""${4:@todo: Docstring for $1}`!p
|
||||||
snip.rv = ""
|
snip.rv = ""
|
||||||
snip >> 1
|
snip >> 1
|
||||||
|
Loading…
Reference in New Issue
Block a user