Skip to content

Commit 7aa2636

Browse files
committed
Fix formatting
1 parent 14f9b27 commit 7aa2636

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

pylsp/plugins/symbols.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@ def pylsp_document_symbols(config, document):
2020
symbols = []
2121
exclude = set({})
2222
redefinitions = {}
23-
pattern_import = (
24-
re.compile
25-
(r'^\s*(?!#)\s*(from\s+[.\w]+(\.[\w]+)*\s+import\s+[\w\s,()*]+|import\s+[\w\s,.*]+)')
26-
)
23+
pattern_import = re.compile(
24+
r"^\s*(?!#)\s*(from\s+[.\w]+(\.[\w]+)*\s+import\s+[\w\s,()*]+|import\s+[\w\s,.*]+)"
25+
)
2726

2827
while definitions != []:
2928
d = definitions.pop(0)

test/plugins/test_symbols.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ def test_symbols_complex_imports(config, workspace):
9797
assert "something" in names
9898
assert "a" in names or "b" in names
9999

100-
assert any(s["name"] == "main" and s["kind"] == SymbolKind.Function for s in symbols)
100+
assert any(
101+
s["name"] == "main" and s["kind"] == SymbolKind.Function for s in symbols
102+
)
101103

102104

103105
def test_symbols_all_scopes(config, workspace) -> None:

0 commit comments

Comments
 (0)