8000 .to_dict() returns object · Issue #2656 · cloudflare/cloudflare-python · GitHub
[go: up one dir, main page]

Skip to content
.to_dict() returns object #2656
Open
Open
@Dreamsorcerer

Description

@Dreamsorcerer

Confirm this is a Python library issue and not an underlying Cloudflare API issue.

  • This is an issue with the Python library

Describe the bug

.to_dict() returns dict[str, object]:

) -> dict[str, object]:

This obviously creates type errors any time a user tries to use any of the values. If possible, the class should be made generic to return a more accurate type. If not, then the type should be dict[str, Any] in order to not create a load of type errors in user's code.

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

      0