From fbadbab043ad1e1810af72d9ba006df743e3dcfe Mon Sep 17 00:00:00 2001 From: Kris Date: Mon, 23 Aug 2021 12:29:28 -0700 Subject: [PATCH] Remove type ambiguity of dict --- src/categorical_algebra/CSetDataStructures.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/categorical_algebra/CSetDataStructures.jl b/src/categorical_algebra/CSetDataStructures.jl index ea92578a7..11051857c 100644 --- a/src/categorical_algebra/CSetDataStructures.jl +++ b/src/categorical_algebra/CSetDataStructures.jl @@ -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 ######################## @@ -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} @@ -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)