Skip to content

Commit

Permalink
TST: remove docstring
Browse files Browse the repository at this point in the history
Signed-off-by: Nathaniel Starkman <nstarman@users.noreply.github.com>
  • Loading branch information
nstarman committed Jun 17, 2023
1 parent aa810eb commit a4ebe9c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions astropy/cosmology/parameter/_core.py
Expand Up @@ -22,8 +22,6 @@

@dataclass(frozen=True)
class UnitField:
"""The parameter unit."""

def __get__(
self, obj: Parameter | None, objcls: type[Parameter] | None
) -> u.Unit | None:
Expand All @@ -37,8 +35,6 @@ def __set__(self, obj: Parameter, value: Any) -> None:

@dataclass(frozen=True)
class FValidateField:
"""Function to validate a potential value of this Parameter."""

default: FValidateCallable | str = "default"

def __get__(
Expand Down Expand Up @@ -109,13 +105,11 @@ class Parameter:

# Units
unit: UnitField = UnitField() # noqa: RUF009
"""The parameter unit."""

equivalencies: u.Equivalency | Sequence[u.Equivalency] = field(default_factory=list)
"""Equivalencies used when initializing Parameter."""

fvalidate: FValidateField = FValidateField(default="default") # noqa: RUF009
"""Function to validate (and convert) a potential value of this Parameter."""

doc: str | None = None
"""Parameter description."""
Expand Down

0 comments on commit a4ebe9c

Please sign in to comment.