Seems like passing tuples, or any other iterable other than lists will now fail due to isinstance(fields, list) check.
Notice that this was before the typing update, which established the parameter type as list. This change at least needs to be documented if we are not considering supporting other collection types.
Prior to the following change, I could pass a tuple to
source()
calls, e.g.source(includes=("a","b","c"))
https://github.com/elastic/elasticsearch-dsl-py/pull/1845/files#diff-706d55be3a1b925b14bb3122ccecf00daeb04113df622f4ce445bec7d7753f5cR627
Seems like passing tuples, or any other iterable other than lists will now fail due to
isinstance(fields, list)
check.Notice that this was before the typing update, which established the parameter type as list. This change at least needs to be documented if we are not considering supporting other collection types.