From 9e2c5606f3b2e6655573892fdf392ab566016400 Mon Sep 17 00:00:00 2001 From: Patrick Ogenstad Date: Tue, 30 Dec 2025 09:50:45 +0100 Subject: [PATCH] Fix unsupported operator on MainSchemaTypes --- infrahub_sdk/node/node.py | 4 ++-- pyproject.toml | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/infrahub_sdk/node/node.py b/infrahub_sdk/node/node.py index ecf1b773..ff24821c 100644 --- a/infrahub_sdk/node/node.py +++ b/infrahub_sdk/node/node.py @@ -198,8 +198,8 @@ def get_kind(self) -> str: return self._schema.kind def get_all_kinds(self) -> list[str]: - if hasattr(self._schema, "inherit_from"): - return [self._schema.kind] + self._schema.inherit_from + if inherit_from := getattr(self._schema, "inherit_from", None): + return [self._schema.kind] + inherit_from return [self._schema.kind] def is_ip_prefix(self) -> bool: diff --git a/pyproject.toml b/pyproject.toml index cbbabf57..362f38e4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -136,7 +136,6 @@ invalid-await = "ignore" invalid-type-form = "ignore" no-matching-overload = "ignore" unresolved-attribute = "ignore" -unsupported-operator = "ignore" [[tool.ty.overrides]] include = ["infrahub_sdk/ctl/config.py"]