Open randolf-scholz opened 9 months ago
dict[str, str]
is not officially documented but Iterable[str]
(excluding str itself) might be "array-like" and would allow dict[str, Any]
.
Btw. I have a potential workaround for the Iterable[str]
vs str
, but it's not sure if it will be accepted: https://github.com/python/cpython/issues/112319
Btw. I have a potential workaround for the
Iterable[str]
vsstr
, but it's not sure if it will be accepted: python/cpython#112319
In pandas we use https://github.com/python/typing/issues/256#issuecomment-1732414512 (but that is for a Sequence, not an Iterable - but Sequence might be more array-like than any iterable).