added type hinting to location module funcs

This commit is contained in:
Blake Harnden 2020-01-13 22:15:44 -08:00
parent 03c4d8768d
commit 02156867e2
4 changed files with 119 additions and 94 deletions

View file

@ -12,7 +12,7 @@ import subprocess
import tempfile
import threading
import time
from typing import Callable, Dict, Iterable, List, Optional, Tuple, Type
from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple, Type
from core import constants, utils
from core.emane.emanemanager import EmaneManager
@ -1342,9 +1342,7 @@ class Session:
break
return node_id
def create_node(
self, cls: Type[NodeBase], *args: Iterable, **kwargs: Dict
) -> NodeBase:
def create_node(self, cls: Type[NodeBase], *args: Any, **kwargs: Any) -> NodeBase:
"""
Create an emulation node.