'type' object is not subscriptable with Python 3.8.10 (Ubuntu 20.04)
Output:
$ pmbootstrap
Traceback (most recent call last):
File "/home/usernotfound/.local/bin/pmbootstrap", line 7, in <module>
import pmb
File "/home/usernotfound/pmOS/pmbootstrap/pmb/__init__.py", line 9, in <module>
from . import config
File "/home/usernotfound/pmOS/pmbootstrap/pmb/config/__init__.py", line 63, in <module>
def sudo(cmd: list[str]) -> list[str]:
TypeError: 'type' object is not subscriptable
$ python3 -V
Python 3.8.10
Please use the legacy way of annotation like typing.List
so that it is compatible with older versions of Python