mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-02 03:55:55 +00:00
还是修不好
This commit is contained in:
@@ -69,6 +69,18 @@ class NodeTypeRegistry:
|
|||||||
for registered_type, node_class in self._nodes.items():
|
for registered_type, node_class in self._nodes.items():
|
||||||
if node_class.type_name == node_type:
|
if node_class.type_name == node_type:
|
||||||
return node_class
|
return node_class
|
||||||
|
|
||||||
|
# Lazy-process pending registrations so execution paths that didn't
|
||||||
|
# explicitly warm the registry can still resolve newly imported nodes.
|
||||||
|
if get_pending_registrations():
|
||||||
|
self.process_pending_registrations()
|
||||||
|
|
||||||
|
if node_type in self._nodes:
|
||||||
|
return self._nodes[node_type]
|
||||||
|
|
||||||
|
for registered_type, node_class in self._nodes.items():
|
||||||
|
if node_class.type_name == node_type:
|
||||||
|
return node_class
|
||||||
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user