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

Syntax: Type[param1, param2] (abuse __getitem__) #8

Open
tfiers opened this issue Sep 16, 2018 · 0 comments
Open

Syntax: Type[param1, param2] (abuse __getitem__) #8

tfiers opened this issue Sep 16, 2018 · 0 comments
Labels
readability Clarity of code or docs

Comments

@tfiers
Copy link
Owner

tfiers commented Sep 16, 2018

To pass parameters to arguments.

Similar to how the stdlib typing does it.

It's semantically correct! We do return a type.

@tfiers tfiers added the readability Clarity of code or docs label Sep 16, 2018
@tfiers tfiers changed the title Abuse __getitem__ Syntax: Type[param1, param2] (abuse __getitem__) Sep 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
readability Clarity of code or docs
Projects
None yet
Development

No branches or pull requests

1 participant