From b576a2d9f39882e686cc70c33f29d1884ee0b4ac Mon Sep 17 00:00:00 2001 From: Patrick Ogenstad Date: Sat, 2 Nov 2024 20:17:05 +0100 Subject: [PATCH] Add return type to generator run() --- infrahub_sdk/ctl/generator.py | 2 +- pyproject.toml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/infrahub_sdk/ctl/generator.py b/infrahub_sdk/ctl/generator.py index 26fd6db0..c46844b5 100644 --- a/infrahub_sdk/ctl/generator.py +++ b/infrahub_sdk/ctl/generator.py @@ -18,7 +18,7 @@ async def run( list_available: bool, branch: Optional[str] = None, variables: Optional[list[str]] = None, -): # pylint: disable=unused-argument +) -> None: # pylint: disable=unused-argument repository_config = get_repository_config(Path(config.INFRAHUB_REPO_CONFIG_FILE)) if list_available: diff --git a/pyproject.toml b/pyproject.toml index 3370973f..7fa15bc6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -161,7 +161,6 @@ disable_error_code = [ module = "infrahub_sdk.ctl.generator" disable_error_code = [ "attr-defined", - "no-untyped-def", ] [[tool.mypy.overrides]]