Continue Adding Typehints

This commit is contained in:
Marek Wolan
2023-07-13 12:25:54 +01:00
parent d2bac4307a
commit 4e4166d4d4
13 changed files with 185 additions and 141 deletions

View File

@@ -1,8 +1,8 @@
from typing import Type, Union
from typing import TypeVar
from primaite.nodes.active_node import ActiveNode
from primaite.nodes.passive_node import PassiveNode
from primaite.nodes.service_node import ServiceNode
NodeUnion: Type = Union[ActiveNode, PassiveNode, ServiceNode]
NodeUnion = TypeVar("NodeUnion", ServiceNode, ActiveNode, PassiveNode)
"""A Union of ActiveNode, PassiveNode, and ServiceNode."""