From abbc854a500a50d9bfafbdef4f8b47c2e1018ff3 Mon Sep 17 00:00:00 2001 From: Joeri Exelmans Date: Mon, 11 Nov 2024 18:56:34 +0100 Subject: [PATCH] fix bug --- api/od.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/od.py b/api/od.py index da5eef6..51ae206 100644 --- a/api/od.py +++ b/api/od.py @@ -135,7 +135,7 @@ class ODAPI: def get_type_name(self, obj: UUID): return self.get_name(self.get_type(obj)) - def is_instance(obj: UUID, type_name: str, include_subtypes=True): + def is_instance(self, obj: UUID, type_name: str, include_subtypes=True): typ = self.cdapi.get_type(type_name) types = set(typ) if not include_subtypes else self.cdapi.transitive_sub_types[type_name] for type_of_obj in self.bottom.read_outgoing_elements(obj, "Morphism"):