Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 97b7303

Browse filesBrowse files
committed
comment
1 parent 0491f8c commit 97b7303
Copy full SHA for 97b7303

File tree

1 file changed

+1
-9
lines changed
Filter options

1 file changed

+1
-9
lines changed

‎fastplotlib/graphics/_base.py

Copy file name to clipboardExpand all lines: fastplotlib/graphics/_base.py
+1-9Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ def __init_subclass__(cls, **kwargs):
5656
# all graphics give off a feature event when deleted
5757
cls.features = {*cls.features}#, "deleted"}
5858

59+
# graphic feature class attributes
5960
for f in cls.features:
6061
setattr(cls, f, GraphicFeatureDescriptor(f))
6162

@@ -181,15 +182,6 @@ def children(self) -> list[WorldObject]:
181182
def _fpl_add_plot_area_hook(self, plot_area):
182183
self._plot_area = plot_area
183184

184-
def __setattr__(self, key, value):
185-
if hasattr(self, key):
186-
attr = getattr(self, key)
187-
if isinstance(attr, GraphicFeature):
188-
attr._set(value)
189-
return
190-
191-
super().__setattr__(key, value)
192-
193185
def __repr__(self):
194186
rval = f"{self.__class__.__name__} @ {hex(id(self))}"
195187
if self.name is not None:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.