edit some parts where pycharm gives warning on type hint

This commit is contained in:
Huy Pham 2020-01-14 14:30:08 -08:00
parent 8a4ad41a47
commit 948a33f201
3 changed files with 7 additions and 12 deletions

View file

@ -1,15 +1,10 @@
import logging
import threading
from typing import TYPE_CHECKING, Callable
if TYPE_CHECKING:
from core.gui.app import Application
from typing import Any, Callable
class BackgroundTask:
def __init__(
self, master: "Application", task: Callable, callback: Callable = None, args=()
):
def __init__(self, master: Any, task: Callable, callback: Callable = None, args=()):
self.master = master
self.args = args
self.task = task