We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 390771f commit 97d59feCopy full SHA for 97d59fe
src/EnforcedTypeSignatureCallables.jl
@@ -88,14 +88,10 @@ const CallableWithTypeSignature = CallableWithReturnType{
88
Callable,
89
}
90
91
-function return_type_enforcer(::Type{Return}) where {Return}
92
- Base.Fix2(typeassert, Return)
93
-end
94
-
95
function typed_callable_no_special_casing(callable::Callable, ::Type{Return}) where {
96
Return, Callable,
97
98
- ret = return_type_enforcer(Return)
+ ret = Base.Fix2(typeassert, Return)
99
ret ∘ callable
100
end
101
0 commit comments