Skip to content
This repository was archived by the owner on Mar 28, 2024. It is now read-only.
This repository was archived by the owner on Mar 28, 2024. It is now read-only.

Make BlossomResponse generic over the returned data #6

@TimJentzsch

Description

@TimJentzsch

Currently, the data attribute of BlossomResponse is fixed to the type Union[Dict[str, Any], None]. Instead, it should be a generic type parameter so that me can provide more type information for specific endpoints.

Also, most endpoints currently return List[Dict[str, Any]] instead, making the type information misleading.

Relevant definitions:

class BlossomResponse:
data: Union[Dict[str, Any], None] = None
status: BlossomStatus = BlossomStatus.ok

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions