Change typehints after mypy analysis

This commit is contained in:
Marek Wolan
2023-07-17 16:22:07 +01:00
parent 432da5ca90
commit bfce2f9a7b
6 changed files with 14 additions and 12 deletions

View File

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