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(
206
206
branch : str ,
207
207
debug : bool ,
208
208
repository_config : InfrahubRepositoryConfig ,
209
- ):
209
+ ) -> Any :
210
210
"""
211
211
Query GraphQL for the required data then run a transform on that data.
212
212
@@ -382,7 +382,8 @@ def protocols( # noqa: PLR0915
382
382
383
383
for data in schemas_data :
384
384
data .load_content ()
385
- schema_root = SchemaRoot (** data .content )
385
+ schema_root_data = data .content or {}
386
+ schema_root = SchemaRoot (** schema_root_data )
386
387
schema .update ({item .kind : item for item in schema_root .nodes + schema_root .generics })
387
388
388
389
else :
@@ -401,7 +402,7 @@ def protocols( # noqa: PLR0915
401
402
402
403
@app .command (name = "version" )
403
404
@catch_exception (console = console )
404
- def version (_ : str = CONFIG_PARAM ):
405
+ def version (_ : str = CONFIG_PARAM ) -> None :
405
406
"""Display the version of Infrahub and the version of the Python SDK in use."""
406
407
407
408
client = initialize_client_sync ()
Original file line number Diff line number Diff line change @@ -155,10 +155,6 @@ disallow_untyped_defs = true
155
155
module = " infrahub_sdk.ctl.check"
156
156
ignore_errors = true
157
157
158
- [[tool .mypy .overrides ]]
159
- module = " infrahub_sdk.ctl.cli_commands"
160
- ignore_errors = true
161
-
162
158
[[tool .mypy .overrides ]]
163
159
module = " infrahub_sdk.ctl.generator"
164
160
ignore_errors = true
You can’t perform that action at this time.
0 commit comments