Instance of StreamingBody
returns True
for isinstance
Iterable
check
#1098
Labels
StreamingBody
returns True
for isinstance
Iterable
check
#1098
Describe the bug
StreamingBody
returnsTrue
forisinstance
Iterable
check when it shouldn't, this can lead to some problems, for example, wrong content encoding in httpx (link) and inability to useStreamingBody
ascontent
inhttpx.AsyncClient
Checklist
pip check
passes without errorspip freeze
resultspip freeze results
Environment:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: