Skip to content

Commit b576a2d

Browse files
committed
Add return type to generator run()
1 parent 1e12ef9 commit b576a2d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

infrahub_sdk/ctl/generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ async def run(
1818
list_available: bool,
1919
branch: Optional[str] = None,
2020
variables: Optional[list[str]] = None,
21-
): # pylint: disable=unused-argument
21+
) -> None: # pylint: disable=unused-argument
2222
repository_config = get_repository_config(Path(config.INFRAHUB_REPO_CONFIG_FILE))
2323

2424
if list_available:

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ disable_error_code = [
161161
module = "infrahub_sdk.ctl.generator"
162162
disable_error_code = [
163163
"attr-defined",
164-
"no-untyped-def",
165164
]
166165

167166
[[tool.mypy.overrides]]

0 commit comments

Comments
 (0)