Skip to content

Add empty __slots__ to arcade.types.Color #1841

Closed
@bunny-therapist

Description

@bunny-therapist

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions