Skip to content

Commit ff9966f

Browse files
committed
Fix linting errors.
1 parent 8ceb315 commit ff9966f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pyls/plugins/symbols.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ def pyls_document_symbols(config, document):
1313
# returns DocumentSymbol[]
1414
hide_imports = config.plugin_settings('jedi_symbols').get('hide_imports', False)
1515
definitions = document.jedi_names(all_scopes=False)
16+
1617
def transform(d):
1718
include_d = _include_def(d, hide_imports)
1819
if include_d is None:
@@ -31,6 +32,7 @@ def transform(d):
3132
}
3233
return [dt for dt in (transform(d) for d in definitions) if dt]
3334

35+
3436
def pyls_document_symbols_legacy(config, document):
3537
# returns SymbolInformation[]
3638
all_scopes = config.plugin_settings('jedi_symbols').get('all_scopes', True)
@@ -46,11 +48,13 @@ def pyls_document_symbols_legacy(config, document):
4648
'kind': _kind(d),
4749
} for d in definitions if _include_def(d, hide_imports) is not None]
4850

51+
4952
def _include_def(definition, hide_imports=True):
53+
# returns
5054
# True: include def and sub-defs
5155
# False: include def but do not include sub-defs
5256
# None: Do not include def or sub-defs
53-
if (# Unused vars should also be skipped
57+
if ( # Unused vars should also be skipped
5458
definition.name != '_' and
5559
definition.is_definition() and
5660
not definition.in_builtin_module() and

0 commit comments

Comments
 (0)