In python 3.10 you can use slots=True
when applying the dataclasses decorator
see https://docs.python.org/3.10/whatsnew/3.10.html#slots
from dataclasses import dataclass
@dataclass(slots=True)
class Birthday:
name: str
birthday: datetime.date
we should think about whether we expose this to end users, like so:
import strawberry
@strawberry.type(slots=True)
class Birthday:
name: str
birthday: datetime.date
or if we enable it automatically (but we should still allow to disable it if that's the case)
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too