Skip to content

Commit 6d783bc

Browse files
authored
guess_zero_tangent_type takes a type
1 parent 9c8c812 commit 6d783bc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/tangent_types/abstract_zero.jl

+1-3
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,7 @@ function guess_zero_tangent_type(::Type{<:Array{T,N}}) where {T,N}
182182
return Array{guess_zero_tangent_type(T),N}
183183
end
184184
guess_zero_tangent_type(T::Type) = Any
185-
guess_zero_tangent_type(::Union{}) = Union{} # This will only show up for empty containers
186-
187-
185+
guess_zero_tangent_type(::Type{Union{}}) = Union{} # This will only show up for empty containers
188186

189187
# Stuff that conceptually has its own identity regardless of structual implementation and doesn't have a tangent
190188
zero_tangent(::Base.AbstractLogger) = NoTangent()

0 commit comments

Comments
 (0)