Skip to content

mailbox: Fix signature of Mailbox.update method#3493

Merged
JelleZijlstra merged 1 commit into
python:masterfrom
suutari:mailbox-fix-update
Nov 26, 2019
Merged

mailbox: Fix signature of Mailbox.update method#3493
JelleZijlstra merged 1 commit into
python:masterfrom
suutari:mailbox-fix-update

Conversation

@suutari

@suutari suutari commented Nov 25, 2019

Copy link
Copy Markdown
Contributor

The update method calls self[key] = message for each (key, message)
pair so it also accepts all the same message types as the __setitem__
method. Fix the signature so that the inputs are not restricted to
Message instances or to instance of the _MessageType type parameter,
but to the more reluctant _MessageData type alias.

The `update` method calls `self[key] = message` for each `(key, message)`
pair so it also accepts all the same message types as the `__setitem__`
method.  Fix the signature so that the inputs are not restricted to
`Message` instances or to instance of the `_MessageType` type parameter,
but to the more reluctant `_MessageData` type alias.
@JelleZijlstra JelleZijlstra merged commit 5668824 into python:master Nov 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants