You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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 :)
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!
The text was updated successfully, but these errors were encountered: