Skip to content

TypeError: attrib() got an unexpected keyword argument 'convert' #13

@tappress

Description

@tappress

When creating Telegraph() instance, error is raised:

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: python-attrs/attrs#307

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