Skip to content

Type safety #6

@ItsDrike

Description

@ItsDrike

Right now, our implementation simply returns dict[str, Any] objects from both load_version and load_common_data. This isn't great, and we could benefit from a more structured approach.

We will first need to decide on the approach for this though:

  • Do we create custom python classes that hold the data (dataclasses/pydantic)
  • Do we just make a bunch of typeddict definitions that match the file structure

As this is the primary reason why this library is not ready for stable use yet, after implementing this, we can shift from the Development Status :: 2 - Pre-Alpha to Development Status :: 4 - Beta.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: apiRelated to core public API of the projectp: 1 - highBlocks other tasks / Important bugs: staleHas had no activity for a while (might get closed for inactivity/marked up for grabs soon)t: featureNew request or feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions