Skip to content

.to_dict() returns object #2656

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
Dreamsorcerer opened this issue May 22, 2025 · 0 comments
Open
1 task done

.to_dict() returns object #2656

Dreamsorcerer opened this issue May 22, 2025 · 0 comments

Comments

@Dreamsorcerer
Copy link

Dreamsorcerer commented May 22, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant