cloudflare / cloudflare/cloudflare-python

.to_dict() returns object

Ouverte
#2,656 6 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Python
Étoiles
506
Forks
148
Merge moyen
3 h 15 min
PR mergées (30 j)
1

Description

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

- [x] This is an issue with the Python library

### Describe the bug

.to_dict() returns dict[str, object]:
https://github.com/cloudflare/cloudflare-python/blob/475b534aadd740ae087967be82040bf0b365f8b9/src/cloudflare/_models.py#L108

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.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.