Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions infrahub_sdk/ctl/cli_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def _run_transform(
branch: str,
debug: bool,
repository_config: InfrahubRepositoryConfig,
):
) -> Any:
"""
Query GraphQL for the required data then run a transform on that data.

Expand Down Expand Up @@ -382,7 +382,8 @@ def protocols( # noqa: PLR0915

for data in schemas_data:
data.load_content()
schema_root = SchemaRoot(**data.content)
schema_root_data = data.content or {}
schema_root = SchemaRoot(**schema_root_data)
schema.update({item.kind: item for item in schema_root.nodes + schema_root.generics})

else:
Expand All @@ -401,7 +402,7 @@ def protocols( # noqa: PLR0915

@app.command(name="version")
@catch_exception(console=console)
def version(_: str = CONFIG_PARAM):
def version(_: str = CONFIG_PARAM) -> None:
"""Display the version of Infrahub and the version of the Python SDK in use."""

client = initialize_client_sync()
Expand Down
4 changes: 0 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,6 @@ disallow_untyped_defs = true
module = "infrahub_sdk.ctl.check"
ignore_errors = true

[[tool.mypy.overrides]]
module = "infrahub_sdk.ctl.cli_commands"
ignore_errors = true

[[tool.mypy.overrides]]
module = "infrahub_sdk.ctl.generator"
ignore_errors = true
Expand Down