edit some parts where pycharm gives warning on type hint
This commit is contained in:
parent
8a4ad41a47
commit
948a33f201
3 changed files with 7 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue