From 33ccfb7612c28f59f673245067561b2350d49481 Mon Sep 17 00:00:00 2001 From: Alex Hadley Date: Tue, 14 Mar 2023 11:08:59 -0700 Subject: [PATCH] #40 Remove extra line, fix README link --- README.md | 4 ++-- paramdb/_param_data/_dataclasses.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1b053e1..a5fcb34 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,8 @@ poetry source add --secondary paramdb https://painterqubits.github.io/paramdb/re Then the package can be installed like any other (e.g. `poetry add paramdb`). [poetry]: https://python-poetry.org +[astropy]: https://docs.astropy.org/en/stable/index.html +[`astropy.units.quantity`]: https://docs.astropy.org/en/stable/api/astropy.units.Quantity.html#astropy.units.Quantity @@ -50,8 +52,6 @@ ParamDB has two main components: See the [api reference] for more information. -[astropy]: https://docs.astropy.org/en/stable/install.html -[`astropy.units.quantity`]: https://docs.astropy.org/en/stable/api/astropy.units.Quantity.html#astropy.units.Quantity [**parameter data**]: https://painterqubits.github.io/paramdb/parameter-data.html [**database**]: https://painterqubits.github.io/paramdb/database.html [api reference]: https://painterqubits.github.io/paramdb/api-reference diff --git a/paramdb/_param_data/_dataclasses.py b/paramdb/_param_data/_dataclasses.py index 58bdc0e..3057191 100644 --- a/paramdb/_param_data/_dataclasses.py +++ b/paramdb/_param_data/_dataclasses.py @@ -17,7 +17,6 @@ def __init_subclass__(cls, /, kw_only: bool = True, **kwargs: Any) -> None: # Convert subclasses into dataclasses super().__init_subclass__() dataclass(kw_only=kw_only, **kwargs)(cls) - dataclass_transform(kw_only_default=True)(cls) def __getitem__(self, name: str) -> Any: # Enable getting attributes via indexing