chore(base_node): Remove unused comments

Signed-off-by: -LAN- <laipz8200@outlook.com>
pull/22581/head
-LAN- 10 months ago
parent b538b4f79a
commit 956f9158c7
No known key found for this signature in database
GPG Key ID: 6BA0D108DED011FF

@ -18,7 +18,6 @@ logger = logging.getLogger(__name__)
class BaseNode: class BaseNode:
_node_type: ClassVar[NodeType] _node_type: ClassVar[NodeType]
# Each subclass will declare: node_data: SpecificNodeData
def __init__( def __init__(
self, self,
@ -139,30 +138,14 @@ class BaseNode:
node_id: str, node_id: str,
node_data: Mapping[str, Any], node_data: Mapping[str, Any],
) -> Mapping[str, Sequence[str]]: ) -> Mapping[str, Sequence[str]]:
"""
Extract variable selector to variable mapping
:param graph_config: graph config
:param node_id: node id
:param node_data: node data
:return:
"""
return {} return {}
@classmethod @classmethod
def get_default_config(cls, filters: Optional[dict] = None) -> dict: def get_default_config(cls, filters: Optional[dict] = None) -> dict:
"""
Get default config of node.
:param filters: filter by node config parameters.
:return:
"""
return {} return {}
@property @property
def node_type(self) -> NodeType: def node_type(self) -> NodeType:
"""
Get node type
:return:
"""
return self._node_type return self._node_type
@classmethod @classmethod
@ -181,11 +164,6 @@ class BaseNode:
@property @property
def retry(self) -> bool: def retry(self) -> bool:
"""judge if should retry
Returns:
bool: if should retry
"""
return False return False
# Abstract methods that subclasses must implement to provide access # Abstract methods that subclasses must implement to provide access

Loading…
Cancel
Save