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"]