convert tuple to list, because the type mismatches (#6625)

This commit is contained in:
Yohei Tamura 2021-01-07 14:42:12 +09:00 committed by GitHub
parent 75d9019343
commit 411c842a71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1098,7 +1098,7 @@ cdef class Doc:
(vocab,) = vocab
if attrs is None:
attrs = Doc._get_array_attrs()
attrs = list(Doc._get_array_attrs())
else:
if any(isinstance(attr, str) for attr in attrs): # resolve attribute names
attrs = [intify_attr(attr) for attr in attrs] # intify_attr returns None for invalid attrs