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 anticipated that this issue would be resolved in Python 3.13.2 because i thought i saw a pull request for it, but that did not happen. (i have had false memories before.) mypy 1.14.0 also reports an error, 1.13.0 does not.
from email import parser, policy
"""
using Python 3.13.2, mypy 1.15.0 emits --
default_policy.py:10: error: Argument "policy" to "Parser" has incompatible type "EmailPolicy[EmailMessage]"; expected "Policy[Message[str, str]]" [arg-type]
Found 1 error in 1 file (checked 1 source file)
"""
parser.Parser(policy=policy.default)
CPython versions tested on:
3.13
Operating systems tested on:
macOS
The text was updated successfully, but these errors were encountered:
Is this a mypy or a CPython issue? if it's a mypy issue, please report it at https://github.com/python/mypy/issues instead (but it could also be a typeshed issue). What would be the non-typing issue? namely can it cause an issue at runtime?
@picnixz, thanks for your comment/questions. i see that my memory of this issue wasn't false, and will stare at the mypy/typeshed repos to discover how/where i should (re)submit.
Bug report
Bug description:
i anticipated that this issue would be resolved in Python 3.13.2 because i thought i saw a pull request for it, but that did not happen. (i have had false memories before.) mypy 1.14.0 also reports an error, 1.13.0 does not.
CPython versions tested on:
3.13
Operating systems tested on:
macOS
The text was updated successfully, but these errors were encountered: