Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/bokeh/core/property/wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,9 @@ class PropertyValueList(PropertyValueContainer, list[T]):
"""

def __init__(self, *args, **kwargs) -> None:
super().__init__(*args, **kwargs)
# Directly call list's __init__ then PropertyValueContainer's __init__, avoiding super() MRO
list.__init__(self, *args, **kwargs)
PropertyValueContainer.__init__(self)

def _saved_copy(self) -> list[T]:
return list(self)
Expand All @@ -227,7 +229,8 @@ def __delitem__(self, y):
# x += y
@notify_owner
def __iadd__(self, y):
return super().__iadd__(y)
# Avoid super() to save method resolution time in simple scenarios
return list.__iadd__(self, y)

# x *= y
@notify_owner
Expand Down