-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Mailbox stubs #3427
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
Mailbox stubs #3427
Conversation
|
Pytype failure is unusual, opened a bug google/pytype#444 |
JelleZijlstra
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR! I left some suggestions.
|
Any updates on this? I believe all review concerns were addressed, though I understand if you're just busy/taking a break. |
JelleZijlstra
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay! I noticed one small issue, which I just committed a fix for. I'll merge after the tests pass.
stdlib/2and3/mailbox.pyi
Outdated
| class MaildirMessage(Message): | ||
|
|
||
| def get_subdir(self) -> str: ... | ||
| def set_subdir(self, subdir: Union[Literal["new", "cur"]]) -> None: ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for the Union[]
Add stubs for the
mailboxmodule. My first contribution using new Protocols and Generics