ops need to be typing strings
This commit is contained in:
parent
8503a36df4
commit
1ecb1c44e8
2 changed files with 5 additions and 5 deletions
|
@ -43,17 +43,17 @@ class Addon:
|
|||
config: ConfigObject
|
||||
logger: logging.Logger
|
||||
|
||||
_client: Treepuncher
|
||||
_client: 'Treepuncher'
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class Options(ConfigObject):
|
||||
pass
|
||||
|
||||
@property
|
||||
def client(self) -> Treepuncher:
|
||||
def client(self) -> 'Treepuncher':
|
||||
return self._client
|
||||
|
||||
def __init__(self, client: Treepuncher, *args, **kwargs):
|
||||
def __init__(self, client: 'Treepuncher', *args, **kwargs):
|
||||
self._client = client
|
||||
self.name = type(self).__name__
|
||||
cfg = self._client.config
|
||||
|
|
|
@ -13,10 +13,10 @@ class Provider(Addon):
|
|||
class Notifier:
|
||||
_report_functions : List[Callable]
|
||||
_providers : List[Provider]
|
||||
_client : Treepuncher
|
||||
_client : 'Treepuncher'
|
||||
logger : logging.Logger
|
||||
|
||||
def __init__(self, client:Treepuncher):
|
||||
def __init__(self, client:'Treepuncher'):
|
||||
self._report_functions = []
|
||||
self._providers = []
|
||||
self._client = client
|
||||
|
|
Loading…
Reference in a new issue