From 0f1bd4f4bdc30e1dd0fa9b19b13e6c76fb30c933 Mon Sep 17 00:00:00 2001 From: Nathaniel Starkman Date: Sat, 2 Mar 2024 13:03:25 -0500 Subject: [PATCH] fix: faithful is a class-var (#47) Signed-off-by: nstarman --- src/jax_quantity/_core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jax_quantity/_core.py b/src/jax_quantity/_core.py index 2760a1c9..6086e20a 100644 --- a/src/jax_quantity/_core.py +++ b/src/jax_quantity/_core.py @@ -6,7 +6,7 @@ import operator from collections.abc import Callable, Sequence from dataclasses import replace -from typing import TYPE_CHECKING, Any, TypeVar, final +from typing import TYPE_CHECKING, Any, ClassVar, TypeVar, final import equinox as eqx import jax @@ -79,7 +79,7 @@ def __check_init__(self) -> None: # --------------------------------------------------------------- # Plum stuff - __faithful__: bool = True + __faithful__: ClassVar[bool] = True """Tells :mod:`plum` that this type can be cached more efficiently.""" @classmethod