-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid type definition for mpwriter.append #7741
Labels
Comments
Yes, it appears the argument is always passed into |
Great! I'll work on it later this week :) |
5 tasks
5 tasks
This was referenced Mar 8, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
It would appear that the
append
method of the MultiPartWriter has an incorrect type definition:aiohttp/aiohttp/multipart.py
Line 856 in d8936aa
Resulting in type checking tools to incorrectly errpr what (I believe) should be correct.
To Reproduce
The following test file generates the error in type checkers.
which generates the following errors:
Expected behavior
I expected that a regular Python dictionary be compatible with the header argument.
Logs/tracebacks
Python Version
aiohttp Version
multidict Version
yarl Version
OS
Related component
Client
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: