Skip to content

Support ClassVar fields #2

@dhrosa

Description

@dhrosa

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions