arcade icon indicating copy to clipboard operation
arcade copied to clipboard

Add empty `__slots__` to `arcade.types.Color`

Open bunny-therapist opened this issue 1 year ago • 0 comments

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.

bunny-therapist avatar Jul 21 '23 17:07 bunny-therapist