Skip to content
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

Add type hinting generics in standard collections support #196

Open
fgallaire opened this issue Apr 18, 2024 · 1 comment
Open

Add type hinting generics in standard collections support #196

fgallaire opened this issue Apr 18, 2024 · 1 comment
Labels
enhancement todo (pstl) special label for student projects

Comments

@fgallaire
Copy link

PEP 585, type hinting generics in standard collections.

https://peps.python.org/pep-0585/#rationale-and-goals
This change removes the necessity for a parallel type hierarchy in the typing module, making it easier for users to annotate their programs and easier for teachers to teach Python.

Tuple, List and Dict from typing are depreciated since Python 3.9 and will be removed... so MrPython needs to support this new (2019) syntax.

@fredokun
Copy link
Collaborator

We'll support both the old and new names

@fredokun fredokun added the todo (pstl) special label for student projects label Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement todo (pstl) special label for student projects
Projects
None yet
Development

No branches or pull requests

2 participants