Skip to content

Commit

Permalink
this shouldn't have specific type args in the method head
Browse files Browse the repository at this point in the history
  • Loading branch information
Tokazama committed Aug 28, 2022
1 parent e29a5a3 commit b0fe6e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PropertyDicts.jl
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Base.isempty(pd::PropertyDict) = isempty(getfield(pd, :d))
function Base.empty(pd::PropertyDict, ::Type{K}=keytype(pd), ::Type{V}=valtype(pd)) where {K,V}
PropertyDict(empty(getfield(pd, :d), K, V))
end
Base.empty(pd::NamedProperties, ::Type{Symbol}, ::Type{Union{}}) = PropertyDict()
Base.empty(pd::NamedProperties, ::Type{K}, ::Type{V}) where {K,V} = PropertyDict()

function Base.delete!(pd::PropertyDict, k)
delete!(getfield(pd, :d), _tokey(pd, k))
Expand Down

0 comments on commit b0fe6e9

Please sign in to comment.