JaxGaussianProcesses / GPJax

Gaussian processes in JAX.
https://docs.jaxgaussianprocesses.com/
Apache License 2.0
436 stars 51 forks source link

dev: Use kwargs only in dataclasses #421

Open thomaspinder opened 9 months ago

thomaspinder commented 9 months ago

Now that our minimum Python version is 3.10, we can make use of the kw_only argument in the dataclass constructor and remove the awkward None initialisation. To resolve this issue, the following steps would need to be taken

  1. Decorate all dataclasses with kw_only=True
  2. Remove all None argument defaults
  3. Cleanup the corresponding __post_init__
daniel-dodd commented 9 months ago

Tagging #372 as closely related issue.

github-actions[bot] commented 1 week ago

This issue has been marked as stale because it has been open for 7 days with no activity.