Skip to content

Commit

Permalink
fix: type check
Browse files Browse the repository at this point in the history
  • Loading branch information
angrybayblade committed Mar 12, 2024
1 parent bf38c6b commit 3d77d55
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ph7/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

TEMPLATE_RE = re.compile(r"\$\{([a-z0-9_]+)(\|([a-zA-Z0-9_\. ]+))?\}")

P = t.ParamSpec("P")


def _wrap(child: "ChildType") -> t.Tuple["node", ...]:
"""Warp child as node type."""
Expand Down Expand Up @@ -412,7 +414,7 @@ def stream(
yield from self._stream(context=context)


CallableAsView = t.Callable[[], node]
CallableAsView = t.Callable

ChildTypeMeta = t.Union[node, str, int, float, bool, CallableAsView]

Expand Down

0 comments on commit 3d77d55

Please sign in to comment.