diff --git a/dangerzone/cli.py b/dangerzone/cli.py index af42ab7..cd8faa8 100644 --- a/dangerzone/cli.py +++ b/dangerzone/cli.py @@ -2,7 +2,7 @@ import os import sys import json import click -import colorama +import colorama # type: ignore from colorama import Fore, Style # type: ignore from dangerzone import container diff --git a/dangerzone/gui/__init__.py b/dangerzone/gui/__init__.py index ea130a1..776e5c2 100644 --- a/dangerzone/gui/__init__.py +++ b/dangerzone/gui/__init__.py @@ -7,7 +7,7 @@ from typing import Optional import click import uuid -import colorama +import colorama # type: ignore from dangerzone.gui.application import Application from dangerzone.gui.gui_common import GuiCommon diff --git a/dangerzone/gui/gui_common.py b/dangerzone/gui/gui_common.py index 0db3be0..d069534 100644 --- a/dangerzone/gui/gui_common.py +++ b/dangerzone/gui/gui_common.py @@ -4,7 +4,7 @@ import subprocess import shlex import pipes from PySide6 import QtGui -from colorama import Fore +from colorama import Fore # type: ignore from dangerzone.common import Common from dangerzone.gui import Application diff --git a/dangerzone/gui/main_window.py b/dangerzone/gui/main_window.py index 3edc101..c50ba54 100644 --- a/dangerzone/gui/main_window.py +++ b/dangerzone/gui/main_window.py @@ -6,7 +6,7 @@ import json import shutil from PySide6 import QtCore, QtGui, QtWidgets from PySide6.QtGui import QIcon -from colorama import Style, Fore +from colorama import Style, Fore # type: ignore import dangerzone.util as dzutil from dangerzone.gui import GuiCommon diff --git a/dangerzone/util.py b/dangerzone/util.py index fabd3c3..215ba12 100644 --- a/dangerzone/util.py +++ b/dangerzone/util.py @@ -11,7 +11,7 @@ import appdirs # If a general-purpose function or constant doesn't depend on anything else in the dangerzone package, # then it belongs here. -from colorama import Back, Fore, Style +from colorama import Back, Fore, Style # type: ignore SYSTEM = platform.system() diff --git a/poetry.lock b/poetry.lock index f73dd6d..924daa2 100644 --- a/poetry.lock +++ b/poetry.lock @@ -217,7 +217,7 @@ hook_testing = ["pytest (>=2.7.3)", "execnet (>=1.5.0)", "psutil"] [[package]] name = "pyinstaller-hooks-contrib" -version = "2022.6" +version = "2022.7" description = "Community maintained hooks for PyInstaller" category = "main" optional = false @@ -319,6 +319,14 @@ category = "dev" optional = false python-versions = ">=3.6" +[[package]] +name = "types-appdirs" +version = "1.4.2" +description = "Typing stubs for appdirs" +category = "dev" +optional = false +python-versions = "*" + [[package]] name = "types-pillow" version = "9.0.19" @@ -381,7 +389,7 @@ testing = ["pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "pytest- [metadata] lock-version = "1.1" python-versions = ">=3.7,<3.11" -content-hash = "8f1a0f817e5030647ef2e47b638bdd003766366faa248c3d0ffdd3962eb800d4" +content-hash = "5da26ad8f7fd76d25f1acda9cafcefa1409e1d16f23fb03030952b15f5880d10" [metadata.files] altgraph = [ @@ -577,8 +585,8 @@ pyinstaller = [ {file = "pyinstaller-5.1.tar.gz", hash = "sha256:9596c70c860cbce19537354db95b180351959b4cd14a70db6ab1d1432668c313"}, ] pyinstaller-hooks-contrib = [ - {file = "pyinstaller-hooks-contrib-2022.6.tar.gz", hash = "sha256:9dc611cf6667301e95384b4a0631b032bbffa16a0688f4cfa014d0c1e751d276"}, - {file = "pyinstaller_hooks_contrib-2022.6-py2.py3-none-any.whl", hash = "sha256:e38bf9266c57be19647762ee63b012683beb6919c6bc2ecdc66ca174edec44a0"}, + {file = "pyinstaller-hooks-contrib-2022.7.tar.gz", hash = "sha256:6675634279cfe9e475580fb310c3d557037baefb065e6cb5a69a124361b926fd"}, + {file = "pyinstaller_hooks_contrib-2022.7-py2.py3-none-any.whl", hash = "sha256:5fdb97dcae177955db7ab27840cba97b89dc0c7f4fd9142bba0f9b8d8df85c48"}, ] pyparsing = [ {file = "pyparsing-3.0.9-py3-none-any.whl", hash = "sha256:5026bae9a10eeaefb61dab2f09052b9f4307d44aee4eda64b309723d8d206bbc"}, @@ -655,6 +663,10 @@ typed-ast = [ {file = "typed_ast-1.5.4-cp39-cp39-win_amd64.whl", hash = "sha256:0fdbcf2fef0ca421a3f5912555804296f0b0960f0418c440f5d6d3abb549f3e1"}, {file = "typed_ast-1.5.4.tar.gz", hash = "sha256:39e21ceb7388e4bb37f4c679d72707ed46c2fbf2a5609b8b8ebc4b067d977df2"}, ] +types-appdirs = [ + {file = "types-appdirs-1.4.2.tar.gz", hash = "sha256:2edb1dca35db16eb4c1244ba8502eb046e637dc0e2857117fe148af927ac028f"}, + {file = "types_appdirs-1.4.2-py3-none-any.whl", hash = "sha256:051a48c3db104d6836954bc17d9608c59a71caf2f7d9b65738225c5f6ed149ef"}, +] types-pillow = [ {file = "types-Pillow-9.0.19.tar.gz", hash = "sha256:bad0de01fd2b6cfdcfcab580fc4025db2b5068e6237707d8f2f4493cd4c4fe16"}, {file = "types_Pillow-9.0.19-py3-none-any.whl", hash = "sha256:34f8380d9e5367baa075e3ef2961c65908f6b69b9161c2b08feb8937200aa25c"}, diff --git a/pyproject.toml b/pyproject.toml index be8be4b..4723971 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,6 +27,7 @@ setuptools = {version = "*", platform = "win32"} black = "*" typing-extensions = "*" types-Pillow = "*" +types-appdirs = "*" [tool.poetry.scripts] dangerzone = 'dangerzone:main'