Skip to content

Commit 8ffb570

Browse files
jmchiltonclaude
andcommitted
Fix E704 flake8 errors in overload stubs
Move ... to its own line in @overload function signatures. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ad80e08 commit 8ffb570

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

gxformat2/to_format2.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,17 @@ def to_format2(
7474
workflow: dict[str, Any] | str | Path | NativeGalaxyWorkflow | NormalizedNativeWorkflow,
7575
options: ConversionOptions,
7676
expand: Literal[True],
77-
) -> ExpandedFormat2: ...
77+
) -> ExpandedFormat2:
78+
...
7879

7980

8081
@overload
8182
def to_format2(
8283
workflow: dict[str, Any] | str | Path | NativeGalaxyWorkflow | NormalizedNativeWorkflow,
8384
options: ConversionOptions | None = None,
8485
expand: Literal[False] = False,
85-
) -> NormalizedFormat2: ...
86+
) -> NormalizedFormat2:
87+
...
8688

8789

8890
def to_format2(

gxformat2/to_native.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,17 @@ def to_native(
9797
workflow: dict[str, Any] | str | Path | NormalizedFormat2 | GalaxyWorkflow,
9898
options: ConversionOptions,
9999
expand: Literal[True],
100-
) -> ExpandedNativeWorkflow: ...
100+
) -> ExpandedNativeWorkflow:
101+
...
101102

102103

103104
@overload
104105
def to_native(
105106
workflow: dict[str, Any] | str | Path | NormalizedFormat2 | GalaxyWorkflow,
106107
options: ConversionOptions | None = None,
107108
expand: Literal[False] = False,
108-
) -> NormalizedNativeWorkflow: ...
109+
) -> NormalizedNativeWorkflow:
110+
...
109111

110112

111113
def to_native(

0 commit comments

Comments
 (0)