docs: record static python source support

This commit is contained in:
lda
2026-06-11 18:54:34 +07:00 Verified
parent 6c10ef59f7
commit 7735d2012e
4 changed files with 25 additions and 3 deletions
+4 -2
View File
@@ -1,6 +1,6 @@
from __future__ import annotations
from collections.abc import Callable, Mapping, Sequence
from collections.abc import Mapping, Sequence
from importlib import import_module
from typing import Any, Protocol
@@ -76,7 +76,9 @@ def _coerce_specs(raw_registry: object) -> list[NodeSpec[Any, Any]]:
specs: list[NodeSpec[Any, Any]] = []
for value in values:
if not isinstance(value, NodeSpec):
raise TypeError(f"expected NodeSpec in Python source registry, got {type(value).__name__}")
raise TypeError(
f"expected NodeSpec in Python source registry, got {type(value).__name__}"
)
specs.append(value)
return specs