typeshed
typeshed copied to clipboard
Various improvements for the mailbox stubs
- Use
_typeshed.SupportsItemsinstead of custom_HasItemsprotocol. - Use a custom covariant protocol for mailbox messages.
- Add
Mailbox._dump_message. - Return a protocol from abstract method
Mailbox.get_file(). - Return concrete type
BytesIOinstead oftyping.IOfromBabyl.get_file(). - Use our custom protocol instead of semi-protocol
typing.IOin the remaining cases.
Closes: #14935
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉