mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
adde contains function for instance class
This commit is contained in:
parent
b7134831fb
commit
b862b2b953
1 changed files with 3 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue