File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ def _run_transform(
206206 branch : str ,
207207 debug : bool ,
208208 repository_config : InfrahubRepositoryConfig ,
209- ):
209+ ) -> Any :
210210 """
211211 Query GraphQL for the required data then run a transform on that data.
212212
@@ -382,7 +382,8 @@ def protocols( # noqa: PLR0915
382382
383383 for data in schemas_data :
384384 data .load_content ()
385- schema_root = SchemaRoot (** data .content )
385+ schema_root_data = data .content or {}
386+ schema_root = SchemaRoot (** schema_root_data )
386387 schema .update ({item .kind : item for item in schema_root .nodes + schema_root .generics })
387388
388389 else :
@@ -401,7 +402,7 @@ def protocols( # noqa: PLR0915
401402
402403@app .command (name = "version" )
403404@catch_exception (console = console )
404- def version (_ : str = CONFIG_PARAM ):
405+ def version (_ : str = CONFIG_PARAM ) -> None :
405406 """Display the version of Infrahub and the version of the Python SDK in use."""
406407
407408 client = initialize_client_sync ()
Original file line number Diff line number Diff line change @@ -155,10 +155,6 @@ disallow_untyped_defs = true
155155module = " infrahub_sdk.ctl.check"
156156ignore_errors = true
157157
158- [[tool .mypy .overrides ]]
159- module = " infrahub_sdk.ctl.cli_commands"
160- ignore_errors = true
161-
162158[[tool .mypy .overrides ]]
163159module = " infrahub_sdk.ctl.exporter"
164160ignore_errors = true
You can’t perform that action at this time.
0 commit comments