Skip to content

Commit 53ee0e7

Browse files
cdeustclaude
andcommitted
style: ruff format workflow_graph_source_ast
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 754ce14 commit 53ee0e7

1 file changed

Lines changed: 19 additions & 4 deletions

File tree

mcp_server/infrastructure/workflow_graph_source_ast.py

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,15 +206,30 @@ def _symbol_type_from_label(label: str) -> str:
206206
# All type-like constructs → class. Covers Rust (struct/enum/trait),
207207
# Java/Kotlin (class/interface), Swift/ObjC (protocol/extension),
208208
# C/C++ (union).
209-
if low in ("struct", "enum", "trait", "class", "interface",
210-
"protocol", "extension", "union"):
209+
if low in (
210+
"struct",
211+
"enum",
212+
"trait",
213+
"class",
214+
"interface",
215+
"protocol",
216+
"extension",
217+
"union",
218+
):
211219
return "class"
212220
# Module-ish containers → module (amber).
213221
if low in ("module", "package", "namespace"):
214222
return "module"
215223
# Value-ish / alias-ish → constant (slate).
216-
if low in ("constant", "typealias", "typedef", "macro",
217-
"field", "property", "variable"):
224+
if low in (
225+
"constant",
226+
"typealias",
227+
"typedef",
228+
"macro",
229+
"field",
230+
"property",
231+
"variable",
232+
):
218233
return "constant"
219234
return low
220235

0 commit comments

Comments
 (0)