fix TypeErrors "object is not subscriptable"

The type hint shoudld be List[] instead of list[] [1] and TypeError:
'ABCMeta' object is not subscriptable (using instead typing.Callable).

[1]: https://mail.python.org/pipermail/python-dev/2017-April/147818.html
This commit is contained in:
deeplow 2022-07-25 16:29:25 +01:00
parent dcc0b269cd
commit f67c1c3656
No known key found for this signature in database
GPG key ID: 577982871529A52A

View file

@ -5,8 +5,7 @@ import platform
import shutil import shutil
import subprocess import subprocess
import tempfile import tempfile
from collections.abc import Callable from typing import Callable, List, Optional
from typing import List, Optional
import appdirs import appdirs