Skip to content

Commit

Permalink
units always keyword-only (#76)
Browse files Browse the repository at this point in the history
Signed-off-by: nstarman <nstarman@users.noreply.github.com>
  • Loading branch information
nstarman committed Jan 21, 2024
1 parent f440431 commit e03572e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/galax/potential/_potential/base.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
__all__ = ["AbstractPotentialBase"]

import abc
from dataclasses import fields, replace
from dataclasses import KW_ONLY, fields, replace
from typing import TYPE_CHECKING, Any

import astropy.units as u
Expand Down Expand Up @@ -40,6 +40,7 @@
class AbstractPotentialBase(eqx.Module, metaclass=ModuleMeta, strict=True): # type: ignore[misc]
"""Potential Class."""

_: KW_ONLY
units: eqx.AbstractVar[UnitSystem]

###########################################################################
Expand Down

0 comments on commit e03572e

Please sign in to comment.