Skip to content

Commit

Permalink
Type functions should only need to be ifn?, not fn?
Browse files Browse the repository at this point in the history
  • Loading branch information
camsaul committed Jan 17, 2023
1 parent 6e481c6 commit 9420a7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toucan1/src/toucan/models.clj
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@
"DEPRECATED: Toucan 2 does not currently have a transforms registry like Toucan 2 did. Define your transforms with `def`
and use them directly in a [[toucan2.tools.transformed/deftransforms]]."
[k & {:keys [in out]}]
{:pre [(fn? in) (fn? out)]}
{:pre [(ifn? in) (ifn? out)]}
(m/defmethod type-fn [k :in] [_k _direction] in)
(m/defmethod type-fn [k :out] [_k _direction] out)
nil)
Expand Down

0 comments on commit 9420a7e

Please sign in to comment.