You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(I'm not sure whether this is a mypy bug or a typeshed bug, but the mypy issue template says that problems with specific functions should be reported here, so ...)
I think it's clear that this code should be acceptable, but running mypy 1.14.0 on this produces the following error:
email-policy.py:6: error: Argument "policy" to "message_from_string" has incompatible type "EmailPolicy[EmailMessage]"; expected "Policy[Message[str, str]]" [arg-type]
The text was updated successfully, but these errors were encountered:
(I'm not sure whether this is a mypy bug or a typeshed bug, but the mypy issue template says that problems with specific functions should be reported here, so ...)
Consider the following code:
I think it's clear that this code should be acceptable, but running mypy 1.14.0 on this produces the following error:
The text was updated successfully, but these errors were encountered: