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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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