typeshed icon indicating copy to clipboard operation
typeshed copied to clipboard

Various improvements for the mailbox stubs

Open srittau opened this issue 3 months ago • 3 comments

  • Use _typeshed.SupportsItems instead of custom _HasItems protocol.
  • Use a custom covariant protocol for mailbox messages.
  • Add Mailbox._dump_message.
  • Return a protocol from abstract method Mailbox.get_file().
  • Return concrete type BytesIO instead of typing.IO from Babyl.get_file().
  • Use our custom protocol instead of semi-protocol typing.IO in the remaining cases.

Closes: #14935

srittau avatar Oct 30 '25 19:10 srittau

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

github-actions[bot] avatar Oct 30 '25 20:10 github-actions[bot]

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

github-actions[bot] avatar Nov 03 '25 14:11 github-actions[bot]

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

github-actions[bot] avatar Nov 23 '25 22:11 github-actions[bot]