From b862b2b95300b47102d1118a3b95319f608c75e7 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Tue, 5 Oct 2021 12:32:25 +0200 Subject: [PATCH] adde contains function for instance class --- openpype/pipeline/create/context.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openpype/pipeline/create/context.py b/openpype/pipeline/create/context.py index 5131ccb8eb..824849e8f2 100644 --- a/openpype/pipeline/create/context.py +++ b/openpype/pipeline/create/context.py @@ -447,6 +447,9 @@ class CreatedInstance: def __getitem__(self, key): return self._data[key] + def __contains__(self, key): + return key in self._data + def __setitem__(self, key, value): # Validate immutable keys if key not in self.__immutable_keys: