Skip to content
Draft
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
2 changes: 2 additions & 0 deletions infrahub_sdk/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ async def extract_fields(selection_set: SelectionSetNode | None) -> dict[str, di

elif isinstance(node, InlineFragmentNode):
for sub_node in node.selection_set.selections:
if not isinstance(sub_node, FieldNode):
continue
sub_sub_selection_set = getattr(sub_node, "selection_set", None)
value = await extract_fields(sub_sub_selection_set)
if sub_node.name.value not in fields:
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@ include = ["infrahub_sdk/checks.py"]
invalid-await = "ignore" # 1 violation

[[tool.ty.overrides]]
include = ["infrahub_sdk/file_handler.py", "infrahub_sdk/utils.py"]
include = ["infrahub_sdk/file_handler.py"]

[tool.ty.overrides.rules]
unresolved-attribute = "ignore" # 5 violations total (1 in file_handler.py, 4 in utils.py)
unresolved-attribute = "ignore" # 1 violation in file_handler.py (anyio type stub issue)

[[tool.ty.overrides]]
include = ["infrahub_sdk/transfer/**"]
Expand Down
Loading