Logo
Explore Help
Sign In
oxbrbtx/PrimAITE
1
0
Fork 0
You've already forked PrimAITE
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
d2bac4307a424a43f2818db67907f5a8e00c5c1f
PrimAITE/src/primaite/common/custom_typing.py

9 lines
308 B
Python
Raw Normal View History

#1355 - Carried out full renaming in node.py, active_node.py, passive_node.py, and service_node.py to make params and variable names explicit. - Made the same renaming in the yaml laydown config files. - Added Type hints wherever I've been. - Added a custom NodeType in custom_typing.py to encompass the Union of ActiveNode, PassiveNode, ServiceNode.
2023-05-25 21:03:11 +01:00
from typing import Type, Union
from primaite.nodes.active_node import ActiveNode
from primaite.nodes.passive_node import PassiveNode
from primaite.nodes.service_node import ServiceNode
#1355 - Renamed the NodeType custom type in custom_typing.py as it clased with the NodeType enum in enums.py
2023-05-26 09:43:37 +01:00
NodeUnion: Type = Union[ActiveNode, PassiveNode, ServiceNode]
#1355 - Carried out full renaming in node.py, active_node.py, passive_node.py, and service_node.py to make params and variable names explicit. - Made the same renaming in the yaml laydown config files. - Added Type hints wherever I've been. - Added a custom NodeType in custom_typing.py to encompass the Union of ActiveNode, PassiveNode, ServiceNode.
2023-05-25 21:03:11 +01:00
"""A Union of ActiveNode, PassiveNode, and ServiceNode."""
Reference in New Issue Copy Permalink
Powered by Gitea Page: 59ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API