Skip to content

Python 3.11 support: don't pass kwargs to list init

Andre Johnson requested to merge s361651/wuenlp:main into main

The new test in test_doc_creation.py shows, that in Python 3.11, it is not possible to retrieve annotations from a document, for example sentences. It fails with the error TypeError: list() takes no keyword arguments. This happens because AnnotationList inherits from list and passes its kwargs` to the list initializer.

This merge requests avoids passing **kwargs to list and avoids the mentioned TypeError.

Merge request reports

Loading