Skip to content

Commit

Permalink
style(pre-commit.ci): auto fixes [...]
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Dec 3, 2024
1 parent 18a7718 commit 9075fc7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions src/cmap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ def resolve(self, name: str) -> str:
from ._catalog import Catalog, CatalogItem

__all__ = [
"Catalog",
"CatalogItem",
"Color",
"Colormap",
"ColorStops",
"HSLA",
"HSVA",
"RGBA",
"RGBA8",
"Catalog",
"CatalogItem",
"Color",
"ColorStops",
"Colormap",
]
2 changes: 1 addition & 1 deletion src/cmap/_color.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ class Color:
The color to represent. Can be any "ColorLike".
"""

__slots__ = ("_rgba", "_name", "__weakref__")
__slots__ = ("__weakref__", "_name", "_rgba")
_rgba: RGBA
_name: str | None

Expand Down
6 changes: 3 additions & 3 deletions src/cmap/_colormap.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ class Colormap:
"""

__slots__ = (
"__weakref__",
"_initialized",
"_lut_cache",
"bad_color",
"category",
"color_stops",
Expand All @@ -130,9 +133,6 @@ class Colormap:
"name",
"over_color",
"under_color",
"_initialized",
"_lut_cache",
"__weakref__",
)

color_stops: ColorStops
Expand Down

0 comments on commit 9075fc7

Please sign in to comment.