fixed type hinting in config.py
This commit is contained in:
parent
ea47217e94
commit
f24901c4e6
1 changed files with 3 additions and 1 deletions
|
@ -14,6 +14,8 @@ from core.nodes.network import WlanNode
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from core.location.mobility import WirelessModel
|
from core.location.mobility import WirelessModel
|
||||||
|
|
||||||
|
WirelessModelType = Type[WirelessModel]
|
||||||
|
|
||||||
|
|
||||||
class ConfigGroup:
|
class ConfigGroup:
|
||||||
"""
|
"""
|
||||||
|
@ -396,7 +398,7 @@ class ModelManager(ConfigurableManager):
|
||||||
def set_model(
|
def set_model(
|
||||||
self,
|
self,
|
||||||
node: Union[WlanNode, EmaneNet],
|
node: Union[WlanNode, EmaneNet],
|
||||||
model_class: "WirelessModel",
|
model_class: "WirelessModelType",
|
||||||
config: Dict[str, str] = None,
|
config: Dict[str, str] = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Reference in a new issue