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

There seems to be a mistake? #12

Open
mx454240121 opened this issue Jul 31, 2022 · 2 comments
Open

There seems to be a mistake? #12

mx454240121 opened this issue Jul 31, 2022 · 2 comments

Comments

@mx454240121
Copy link

When i run card.py it happens a TypeError. Why is this?

line 33, in Card
PRIMES: list[int] = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41]
TypeError: 'type' object is not subscriptable

Thanks!

@ihendley
Copy link
Owner

The lowercase list type hinting syntax was introduced in Python 3.9. Are you running a lower version of Python, and are you able to upgrade? It should work after you upgrade to 3.9 or later.

@Chazzz
Copy link

Chazzz commented Feb 10, 2023

pip install treys==0.1.4 resolved this issue for me, having the package manager explicitly require 3.9+ for treys 0.1.5+ would help avoid these errors :)

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

3 participants