Closed Peleg-Noam closed 1 year ago
Hi,
It's because you are using an old version of Python: https://peps.python.org/pep-0585/
The lower-case types (tuple
, list
, dict
etc.) have been introduced on Python 3.9.
To be still compatible with earlier versions, from __future__ import annotations
has to be added in top of the file.
Guess I forgot to put it on this file, thanks for the report!
Fixed in #03155baa5500659b3462cea42bcbdf9d17a4dc5d
There seem to be many places where I cannot run the code because of improper use of the typing module.
For example: (position.py) instead of:
where I get the error: type object is not subscriptable
i need to change it to:
this is just one example... am I missing something?