Skip to content

Commit 4f4d5f0

Browse files
authored
remove unbound type parameters (#584)
1 parent 07dfe60 commit 4f4d5f0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ChainRulesCore"
22
uuid = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
3-
version = "1.15.4"
3+
version = "1.15.5"
44

55
[deps]
66
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"

src/tangent_types/tangent.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ end
6565
function Base.:(==)(a::Tangent{P,T}, b::Tangent{P,T}) where {P,T}
6666
return backing(a) == backing(b)
6767
end
68-
function Base.:(==)(a::Tangent{P}, b::Tangent{P}) where {P,T}
68+
function Base.:(==)(a::Tangent{P}, b::Tangent{P}) where {P}
6969
all_fields = union(keys(backing(a)), keys(backing(b)))
7070
return all(getproperty(a, f) == getproperty(b, f) for f in all_fields)
7171
end
@@ -117,7 +117,7 @@ function Base.getindex(tangent::Tangent{P,T}, idx::Symbol) where {P,T<:NamedTupl
117117
hasfield(T, idx) || return ZeroTangent()
118118
return unthunk(getfield(backing(tangent), idx))
119119
end
120-
function Base.getindex(tangent::Tangent, idx) where {P,T<:AbstractDict}
120+
function Base.getindex(tangent::Tangent, idx)
121121
return unthunk(getindex(backing(tangent), idx))
122122
end
123123

@@ -237,8 +237,8 @@ canonicalize(tangent::Tangent{<:Any,<:AbstractDict}) = tangent
237237
# Tangents of unspecified primal types (indicated by specifying exactly `Any`)
238238
# all combinations of type-params are specified here to avoid ambiguities
239239
canonicalize(tangent::Tangent{Any,<:NamedTuple{L}}) where {L} = tangent
240-
canonicalize(tangent::Tangent{Any,<:Tuple}) where {L} = tangent
241-
canonicalize(tangent::Tangent{Any,<:AbstractDict}) where {L} = tangent
240+
canonicalize(tangent::Tangent{Any,<:Tuple}) = tangent
241+
canonicalize(tangent::Tangent{Any,<:AbstractDict}) = tangent
242242

243243
"""
244244
_zeroed_backing(P)

0 commit comments

Comments
 (0)