Open andree0 opened 1 year ago
The TypeError
with which this is associated with seems to want to only care for the first unexpected kwarg considering that in the case of simple types the only kwarg allowed is value=
. If that's the case, might as well just throw a iter()
call in there to get the desired result. I.e., next(iter(kwargs.keys()))
https://github.com/mvantellingen/python-zeep/blob/2f35b7d29355ba646f5e3c6e9925033d5d6df8bb/src/zeep/xsd/types/simple.py#L52
This line had no right to work in any version of python.
For python 2.7,
keys()
method returns list and in this case it will give a similar error likeTypeError: 'list' object is not an iterator
.