mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-30 02:32:38 +02:00
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:
parent
dcc0b269cd
commit
f67c1c3656
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue