TypeError: attrib() got an unexpected keyword argument 'convert'
- Ngôn ngữ chính
- Python
- Star
- 65
- Fork
- 15
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
When creating `Telegraph()` instance, error is raised:
```shell
File "/site-packages/aiograph/types/page_list.py", line 21, in PageList
pages: List[Page] = ib(factory=list, convert=pages_converter)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: attrib() got an unexpected keyword argument 'convert'
```
Suggested workaround from https://stackoverflow.com/questions/58189683/typeerror-attrib-got-an-unexpected-keyword-argument-convert is to set `attrs` version to `attrs==19.1.0` instead of `attrs>=19.1.0`.
Workaround is working, but **better solution** would be to update `attrs` version and use `converter` kward instead of `convert` as per this PR: https://github.com/python-attrs/attrs/issues/307
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.