arcade
arcade copied to clipboard
Add empty `__slots__` to `arcade.types.Color`
Enhancement request:
What should be added/changed?
Add empty slots, __slots__ = ()
to arcade.types.Color
. That class is actually a tuple with a couple of methods added to it. When subclassing a tuple, it makes sense to add empty slots as tuples normally do not have __dict__
and arcade.types.Color
does not have any attributes so __dict__
is empty anyway.
What would it help with?
Avoid unnecessary creation of a __dict__
for arcade.types.Color
. This is kind of low-value, low-effort enhancement request.