From 9075fc79ba1a77de5f010089dd91b71cf9814f42 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 3 Dec 2024 00:22:22 +0000 Subject: [PATCH] style(pre-commit.ci): auto fixes [...] --- src/cmap/__init__.py | 10 +++++----- src/cmap/_color.py | 2 +- src/cmap/_colormap.py | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/cmap/__init__.py b/src/cmap/__init__.py index 5a159026b..bfe972519 100644 --- a/src/cmap/__init__.py +++ b/src/cmap/__init__.py @@ -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", ] diff --git a/src/cmap/_color.py b/src/cmap/_color.py index 7ab614279..a9abb56f7 100644 --- a/src/cmap/_color.py +++ b/src/cmap/_color.py @@ -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 diff --git a/src/cmap/_colormap.py b/src/cmap/_colormap.py index 00efa2b24..62e288453 100644 --- a/src/cmap/_colormap.py +++ b/src/cmap/_colormap.py @@ -121,6 +121,9 @@ class Colormap: """ __slots__ = ( + "__weakref__", + "_initialized", + "_lut_cache", "bad_color", "category", "color_stops", @@ -130,9 +133,6 @@ class Colormap: "name", "over_color", "under_color", - "_initialized", - "_lut_cache", - "__weakref__", ) color_stops: ColorStops