Skip to content

Commit 7711cdc

Browse files
Fix PEP8 E301 in class snippet
A blank line is required before a class methode
1 parent 3b2bcdd commit 7711cdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

snippets/language-python.cson

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
'body': 'self.fail(\'${1:message}\')$0'
5656
'New Class':
5757
'prefix': 'class'
58-
'body': 'class ${1:ClassName}(${2:object}):\n\t"""${3:docstring for $1.}"""\n\tdef __init__(self, ${4:arg}):\n\t\t${5:super($1, self).__init__()}\n\t\tself.arg = arg\n\t\t$0'
58+
'body': 'class ${1:ClassName}(${2:object}):\n\t"""${3:docstring for $1.}"""\n\n\tdef __init__(self, ${4:arg}):\n\t\t${5:super($1, self).__init__()}\n\t\tself.arg = arg\n\t\t$0'
5959
'New Method':
6060
'prefix': 'defs'
6161
'body': 'def ${1:mname}(self, ${2:arg}):\n\t${3:pass}'

0 commit comments

Comments
 (0)