Closed jakkdl closed 1 year ago
I don't think this is the first time that I've been bit by assert_type("", Iterable[str])
. Feels like something that should either be warned upon by type checkers ("don't pass a string to a function expecting an Iterable[str]
") - or maybe just a check for bugbear to never use Iterable[str]
.
Hm, might bring it up with mypy/pyright or discuss.python.org - but that's for another time. Thanks for catching it!
Fixes #129 Introduced in 73c9fc50 when adding support for anyio.