Closed MarcoGorelli closed 1 year ago
Thanks for reporting and proposing a fix! I don't understand why we would be visiting a splat expression at all since it's not a function parameter.
I think the problem instead is that the parameter is called iterables
. That means the container regex at https://github.com/JelleZijlstra/autotyping/blob/master/autotyping/guess_type.py#L17 will match with elems
being the empty string. The solution should be to make elems
always nonempty by using +
instead of *
in the two regexes in https://github.com/JelleZijlstra/autotyping/blob/master/autotyping/guess_type.py#L36.
Here's an example:
Noticed this when trying to upgrade
autotyping
in pandas