Skip to content

Commit d9b02c4

Browse files
committed
Fixed errors due to updated linters
1 parent f785701 commit d9b02c4

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

DocblockrPython.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515

1616
def plugin_loaded():
17-
"""The Sublime Text 3 entry point for plugins."""
17+
"""Sublime Text 3 entry point for plugins."""
1818
populate_registry()
1919

2020
global plugin_is_loaded

commands.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def escape(string):
4343
4444
Returns:
4545
{String} String with escaped characters
46+
4647
"""
4748
return string.replace('$', r'\$').replace('{', r'\{').replace('}', r'\}')
4849

@@ -101,7 +102,7 @@ def run(self, edit):
101102
write(self.view, snippet)
102103

103104
def initialize(self, view):
104-
"""Setup the command's settings.
105+
"""Set up the command's settings.
105106
106107
Begins preparsing the file to gather some basic information.
107108
- Which parser to use
@@ -141,6 +142,7 @@ def create_snippet(self, parsed_attributes):
141142
142143
Returns:
143144
str -- sublime text formatted snippet string
145+
144146
"""
145147
project_formatter = self.project_settings.get('formatter', None)
146148
formatter = get_formatter(project_formatter or get_setting('formatter'))()

parsers/parser.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,9 @@ def process_variable(self, variable, hints=None):
413413
params['default'] = pieces[1].strip()
414414

415415
params['name'] = variable
416-
params['type'] = hints.get(variable, None) or guess_type_from_value(params.get('default')) or guess_type_from_name(variable)
416+
params['type'] = hints.get(variable, None) or \
417+
guess_type_from_value(params.get('default')) or \
418+
guess_type_from_name(variable)
417419

418420
return params
419421

0 commit comments

Comments
 (0)