mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-29 10:12:38 +02:00
fix type hints for gui-common (CI would fail)
CI fails: https://app.circleci.com/pipelines/github/freedomofpress/dangerzone/397/workflows/cba836ed-98df-41f8-8f34-abcde5a8c015/jobs/1538
This commit is contained in:
parent
75fe45cfb6
commit
01a5e3b7ca
1 changed files with 3 additions and 2 deletions
|
@ -4,6 +4,7 @@ import pipes
|
||||||
import platform
|
import platform
|
||||||
import shlex
|
import shlex
|
||||||
import subprocess
|
import subprocess
|
||||||
|
from typing import Dict
|
||||||
|
|
||||||
from colorama import Fore
|
from colorama import Fore
|
||||||
from PySide2 import QtCore, QtGui, QtWidgets
|
from PySide2 import QtCore, QtGui, QtWidgets
|
||||||
|
@ -82,8 +83,8 @@ class GuiCommon(object):
|
||||||
log.info(Fore.YELLOW + "> " + Fore.CYAN + args_str)
|
log.info(Fore.YELLOW + "> " + Fore.CYAN + args_str)
|
||||||
subprocess.Popen(args)
|
subprocess.Popen(args)
|
||||||
|
|
||||||
def _find_pdf_viewers(self) -> dict[str, str]:
|
def _find_pdf_viewers(self) -> Dict[str, str]:
|
||||||
pdf_viewers: dict[str, str] = {}
|
pdf_viewers: Dict[str, str] = {}
|
||||||
if platform.system() == "Linux":
|
if platform.system() == "Linux":
|
||||||
# Find all .desktop files
|
# Find all .desktop files
|
||||||
for search_path in [
|
for search_path in [
|
||||||
|
|
Loading…
Reference in a new issue