mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02: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 shlex
|
||||
import subprocess
|
||||
from typing import Dict
|
||||
|
||||
from colorama import Fore
|
||||
from PySide2 import QtCore, QtGui, QtWidgets
|
||||
|
@ -82,8 +83,8 @@ class GuiCommon(object):
|
|||
log.info(Fore.YELLOW + "> " + Fore.CYAN + args_str)
|
||||
subprocess.Popen(args)
|
||||
|
||||
def _find_pdf_viewers(self) -> dict[str, str]:
|
||||
pdf_viewers: dict[str, str] = {}
|
||||
def _find_pdf_viewers(self) -> Dict[str, str]:
|
||||
pdf_viewers: Dict[str, str] = {}
|
||||
if platform.system() == "Linux":
|
||||
# Find all .desktop files
|
||||
for search_path in [
|
||||
|
|
Loading…
Reference in a new issue