Skip to content

Commit

Permalink
fix: faithful is a class-var (#47)
Browse files Browse the repository at this point in the history
Signed-off-by: nstarman <[email protected]>
  • Loading branch information
nstarman authored Mar 2, 2024
1 parent fafc2f7 commit 0f1bd4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jax_quantity/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0f1bd4f

Please sign in to comment.