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

use of built in types for Type hints #25

Closed
gilesknap opened this issue Feb 27, 2021 · 2 comments
Closed

use of built in types for Type hints #25

gilesknap opened this issue Feb 27, 2021 · 2 comments

Comments

@gilesknap
Copy link
Contributor

image

in 88fb3b2 the type hints are using tuple instead of Tuple. This is causing errors for me, what am I missing?

@gilesknap gilesknap changed the title use of native use of built in types for Type hints Feb 27, 2021
@conqp
Copy link
Owner

conqp commented Feb 28, 2021

The feature of using built-in type subscripts for type hints was introduced in Python 3.9.
I'd suspect that your IDE is still on Python 3.9.

@gilesknap
Copy link
Contributor Author

Thanks - my VM was 3.8.

I prefer the built-in type hints - it feels less like a bolted-on feature.

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

No branches or pull requests

2 participants