Skip to content

Conversation

@CraftSpider
Copy link
Contributor

Add stubs for the mailbox module. My first contribution using new Protocols and Generics

@CraftSpider
Copy link
Contributor Author

Pytype failure is unusual, opened a bug google/pytype#444

Copy link
Member

@JelleZijlstra JelleZijlstra left a 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.

@CraftSpider
Copy link
Contributor Author

Any updates on this? I believe all review concerns were addressed, though I understand if you're just busy/taking a break.

Copy link
Member

@JelleZijlstra JelleZijlstra left a 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.

class MaildirMessage(Message):

def get_subdir(self) -> str: ...
def set_subdir(self, subdir: Union[Literal["new", "cur"]]) -> None: ...
Copy link
Member

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[]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants