cloudflare / cloudflare/cloudflare-python
.to_dict() returns object
未关闭
- 主要语言
- Python
- 星标
- 506
- 派生
- 148
- 平均合并
- 3 小时 15 分钟
- 30 天内合并 PR
- 1
描述
### 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.
贡献指南
评估
这个 Issue 还没有评估数据。