For some reason I get this error when I try to run any script.
The cause is unknown.
This error occurred when I was installing Python via Brew with brew install python.
Full error:
Traceback (most recent call last):
File "genmakefile-v1.0.py", line 8, in <module>
def generate_makefile(apps: dict[str, str]) -> None:
TypeError: 'type' object is not subscriptable
A similar error occurred when I tried to run this script with Python 2:
For some reason I get this error when I try to run any script.
The cause is unknown.
This error occurred when I was installing Python via Brew with
brew install python
. Full error:A similar error occurred when I tried to run this script with Python 2:
Removing type annotation should resolve this issue.