Skip to content

Commit

Permalink
Remove type ambiguity of dict
Browse files Browse the repository at this point in the history
  • Loading branch information
kris-brown committed Aug 23, 2021
1 parent 76e8a66 commit fbadbab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/categorical_algebra/CSetDataStructures.jl
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ end

make_table(::Type{T}, cols) where T = T(cols)
make_table(::Type{NamedTuple}, cols) = cols # No copy constructor defined.

# StructACSet Operations
########################

Expand Down Expand Up @@ -308,7 +308,7 @@ function incident_body(s::SchemaDesc,
throw(ArgumentError("$(repr(f)) not in $(s.homs)"))
end
end

@generated function _incident(acs::StructACSet{S,Ts,Idxed,UniqueIdxed},
part, ::Type{Val{f}}; copy::Bool=false) where
{S,Ts,Idxed,UniqueIdxed,f}
Expand Down Expand Up @@ -497,7 +497,7 @@ end

@generated function _rem_part!(acs::StructACSet{S,Ts,idxed}, ::Type{Val{ob}},
part::Int) where {S,Ts,ob,idxed}
rem_part_body(SchemaDesc(S),Dict(idxed),ob)
rem_part_body(SchemaDesc(S),Dict{Symbol, Bool}(idxed),ob)
end

function Base.copy(acs::StructACSet)
Expand Down

0 comments on commit fbadbab

Please sign in to comment.