Skip to content

Commit

Permalink
fix mypy errors with _
Browse files Browse the repository at this point in the history
  • Loading branch information
heartsucker authored and sssoleileraaa committed May 15, 2019
1 parent ec4a6de commit 06df84c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,16 @@ SHELL := /bin/bash
mypy: ## Run static type checker
@mypy --ignore-missing-imports securedrop_client
@# Add files that are 100% typed to the below call (eventually just the below line will run so that code without static type hints will fail CI)
@mypy --ignore-missing-imports --disallow-incomplete-defs --disallow-untyped-defs securedrop_client/db.py securedrop_client/crypto.py securedrop_client/config.py securedrop_client/gui/__init__.py securedrop_client/resources/__init__.py securedrop_client/storage.py securedrop_client/message_sync.py
@mypy --ignore-missing-imports \
--disallow-incomplete-defs \
--disallow-untyped-defs \
securedrop_client/db.py \
securedrop_client/crypto.py \
securedrop_client/config.py \
securedrop_client/gui/__init__.py \
securedrop_client/resources/__init__.py \
securedrop_client/storage.py \
securedrop_client/message_sync.py

.PHONY: clean
clean: ## Clean the workspace of generated resources
Expand Down
1 change: 1 addition & 0 deletions securedrop_client/logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import traceback
import uuid

from gettext import gettext as _
from PyQt5.QtCore import QObject, QThread, pyqtSignal, QTimer, QProcess
from sdclientapi import RequestTimeoutError
from typing import Dict, Tuple # noqa: F401
Expand Down

0 comments on commit 06df84c

Please sign in to comment.