ReflexList: reassign field on insert (#1652)

This commit is contained in:
Masen Furer 2023-08-23 15:33:56 -07:00 committed by GitHub
parent 57855f56a1
commit 457173eed7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1015,6 +1015,16 @@ class ReflexList(list):
super().append(*args, **kwargs)
self._reassign_field()
def insert(self, *args, **kwargs):
"""Insert.
Args:
args: The args passed.
kwargs: The kwargs passed.
"""
super().insert(*args, **kwargs)
self._reassign_field()
def __setitem__(self, *args, **kwargs):
"""Set item.