GPJax icon indicating copy to clipboard operation
GPJax copied to clipboard

dev: Use kwargs only in dataclasses

Open thomaspinder opened this issue 2 years ago • 2 comments

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__

thomaspinder avatar Nov 28 '23 07:11 thomaspinder

Tagging #372 as closely related issue.

daniel-dodd avatar Nov 28 '23 14:11 daniel-dodd

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

github-actions[bot] avatar Sep 01 '24 02:09 github-actions[bot]

There has been no recent activity on this issue. To keep our issues log clean, we remove old and inactive issues. Please update to the latest version of GPJax and check if that resolves the issue. Let us know if that works for you by leaving a comment. This issue is now marked as stale and will be closed if no further activity occurs. If you believe that this is incorrect, please comment. Thank you!

github-actions[bot] avatar Apr 25 '25 08:04 github-actions[bot]

There has been no activity on this PR for some time. Therefore, we will be automatically closing the PR if no new activity occurs within the next seven days. Thank you for your contributions.

github-actions[bot] avatar May 03 '25 08:05 github-actions[bot]