Skip to content

bpo-35341: Add generic version of OrderedDict to typing#10850

Merged
ilevkivskyi merged 4 commits into
python:masterfrom
itoijala:bpo-35341
Dec 2, 2018
Merged

bpo-35341: Add generic version of OrderedDict to typing#10850
ilevkivskyi merged 4 commits into
python:masterfrom
itoijala:bpo-35341

Conversation

@itoijala

@itoijala itoijala commented Dec 2, 2018

Copy link
Copy Markdown
Contributor

Adds a generic version of OrderedDict to the typing module.

A backport to 3.7 was stated to be possible in the issue.
I would like to request such a backport to get this in 3.7.2.

https://bugs.python.org/issue35341

Comment thread Lib/typing.py
@tirkarthi

Copy link
Copy Markdown
Member

Sorry, I missed the docs part. This would require some docs to be added about the new addition at https://github.com/python/cpython/blob/master/Doc/library/typing.rst#classes-functions-and-decorators that contains the current set of items. I will leave it to the reviewers on the content of the docs.

@itoijala

itoijala commented Dec 2, 2018

Copy link
Copy Markdown
Contributor Author

Added docs based on the ones for DefaultDict. I assumed for the version added that this will be backported to 3.7.2. I can change it to 3.8.0 if requested.

@ilevkivskyi ilevkivskyi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for PR, just one little comment.

@@ -0,0 +1 @@
Add generic version of ``collections.OrderedDict`` to the ``typing`` module.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add "Patch by ."

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@ilevkivskyi
ilevkivskyi merged commit 68b56d0 into python:master Dec 2, 2018
@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @itoijala for the PR, and @ilevkivskyi for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒⛏🤖

@bedevere-bot

Copy link
Copy Markdown

GH-10851 is a backport of this pull request to the 3.7 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 2, 2018
(cherry picked from commit 68b56d0)

Co-authored-by: Ismo Toijala <ismo.toijala@gmail.com>
@itoijala
itoijala deleted the bpo-35341 branch December 2, 2018 15:54
miss-islington added a commit that referenced this pull request Dec 2, 2018
(cherry picked from commit 68b56d0)

Co-authored-by: Ismo Toijala <ismo.toijala@gmail.com>
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.

6 participants