1
0

more type annotations in core lib

This commit is contained in:
SomberNight
2018-10-22 16:41:25 +02:00
parent 6958c0ccc3
commit 81cc20039e
14 changed files with 90 additions and 49 deletions

View File

@@ -30,11 +30,13 @@ import pkgutil
import time
import threading
from .util import print_error
from .i18n import _
from .util import profiler, PrintError, DaemonThread, UserCancelled, ThreadJob
from .util import (profiler, PrintError, DaemonThread, UserCancelled,
ThreadJob, print_error)
from . import bitcoin
from . import plugins
from .simple_config import SimpleConfig
plugin_loaders = {}
hook_names = set()
@@ -45,7 +47,7 @@ class Plugins(DaemonThread):
verbosity_filter = 'p'
@profiler
def __init__(self, config, is_local, gui_name):
def __init__(self, config: SimpleConfig, is_local, gui_name):
DaemonThread.__init__(self)
self.setName('Plugins')
self.pkgpath = os.path.dirname(plugins.__file__)