See https://docs.python.org/3.12/library/dataclasses.html#class-variables
This will be a bit tricky as MicroPython does not have a typing module. We could do something like having an extra compat submodule that provides extensions to the standard dataclasses API, where we can implement our own ClassVar.
See https://docs.python.org/3.12/library/dataclasses.html#class-variables
This will be a bit tricky as MicroPython does not have a
typingmodule. We could do something like having an extracompatsubmodule that provides extensions to the standard dataclasses API, where we can implement our ownClassVar.