daemon: fixed issue for CoreError messages in new hooks module, updated new modules to all use non deprecated type hinting
This commit is contained in:
parent
da3cebe1cd
commit
6ff2abf0b8
3 changed files with 23 additions and 28 deletions
|
@ -1,5 +1,5 @@
|
|||
import logging
|
||||
from typing import TYPE_CHECKING, Optional, Tuple
|
||||
from typing import TYPE_CHECKING, Optional
|
||||
|
||||
from core import utils
|
||||
from core.emulator.data import InterfaceData
|
||||
|
@ -32,7 +32,7 @@ class ControlNetManager:
|
|||
|
||||
def _get_server_ifaces(
|
||||
self,
|
||||
) -> Tuple[None, Optional[str], Optional[str], Optional[str]]:
|
||||
) -> tuple[None, Optional[str], Optional[str], Optional[str]]:
|
||||
"""
|
||||
Retrieve control net server interfaces.
|
||||
|
||||
|
@ -48,7 +48,7 @@ class ControlNetManager:
|
|||
|
||||
def _get_prefixes(
|
||||
self,
|
||||
) -> Tuple[Optional[str], Optional[str], Optional[str], Optional[str]]:
|
||||
) -> tuple[Optional[str], Optional[str], Optional[str], Optional[str]]:
|
||||
"""
|
||||
Retrieve control net prefixes.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue