multipart.py type annotations mismatch documentation #3621
Closed
Description
Long story short
Problem lies in a mismatch between the documentation of multipart here and the actual code execution around courotines __anext__, next.
Expected behaviour
Code annotations are matching the documentation and therefore expected behavior.
Actual behaviour
As a developer, I didn't notice that multipart reader behavior is actually not as straightforward as it seemed to be. Reading the documentation again, revealed to me what should be expected in here however I would expect that mypy tells me that I need to account for that behavior.
Steps to reproduce
None that I can think of. Code works fine, only annotations need tuning.
Your environment
- aiohttp (3.5.4)
- server