Closed arnimarj closed 4 years ago
Hi,
Its wonderful to see the new annotation support. I'd just like to point out a small issue with some Tuple annotations in https://github.com/maxmind/minfraud-api-python/blob/master/minfraud/models.py
Tuple
Annotations for Tuple of arbitrary length should be Tuple[SomeType, ...] instead of Tuple[SomeType]. The latter matches only a tuple of length 1, where the former supports Tuples of any length.
Tuple[SomeType, ...]
Tuple[SomeType]
I found 6 instances of Tuple[str] in https://github.com/maxmind/minfraud-api-python/blob/master/minfraud/webservice.py
Tuple[str]
Thanks! This was fixed in 2.0.2.
Hi,
Its wonderful to see the new annotation support. I'd just like to point out a small issue with some
Tuple
annotations in https://github.com/maxmind/minfraud-api-python/blob/master/minfraud/models.pyAnnotations for
Tuple
of arbitrary length should beTuple[SomeType, ...]
instead ofTuple[SomeType]
. The latter matches only a tuple of length 1, where the former supportsTuple
s of any length.I found 6 instances of
Tuple[str]
in https://github.com/maxmind/minfraud-api-python/blob/master/minfraud/webservice.py