def typed
import bolt@1.27.0.0/src/rules/calls.bend as Callsimport Base
import bolt@1.27.0.0/src/syntax/tree.bend as Tree
import bolt@1.27.0.0/src/lazy/lazy.bend as Lazy
285# does the signature write a type: a `:` among its parameters, or a `->`?
286def typed(+sig: Tree.Node) -> Bool:
287 Lazy.or_else(has_colon(params.of(sig)), _u => has_arrow(sig))