Skip to content

Conversation

@Carlos-Muniz
Copy link

Changes annotations from typing to use built-in generic types from __future__.annotations

Closes openedx-unsupported/wg-developer-experience#130

@Carlos-Muniz
Copy link
Author

@kdmccormick @regisb This is ready for review

Copy link
Contributor

@regisb regisb left a comment

Choose a reason for hiding this comment

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

Looking good, thanks! Just a few minor comments.

@Carlos-Muniz Carlos-Muniz force-pushed the Carlos-Muniz/built-in-generic-types branch from 54e274b to a61d275 Compare January 17, 2023 18:53
@Carlos-Muniz Carlos-Muniz requested a review from regisb January 17, 2023 18:56
Adds `from __future__ import annotations` to the top of every module,
right below the module's docstring. Replaces any usages of t.List,
t.Dict, t.Set, t.Tuple, and t.Type with their built-in equivalents:
list, dict, set, tuple, and type. Ensures that make test still passes
under Python 3.7, 3.8 and 3.9.
@Carlos-Muniz Carlos-Muniz force-pushed the Carlos-Muniz/built-in-generic-types branch from a61d275 to aebb04a Compare January 17, 2023 18:57
Copy link
Contributor

@regisb regisb left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution!

@regisb regisb merged commit 4da32ab into overhangio:nightly Jan 18, 2023
@regisb
Copy link
Contributor

regisb commented Jan 18, 2023

I realized only now that your PR was on the nightly branch. I'll backport the commit to the master branch.

@Carlos-Muniz Carlos-Muniz deleted the Carlos-Muniz/built-in-generic-types branch January 18, 2023 14:06
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