diff --git a/src/optimization_container_keys.jl b/src/optimization_container_keys.jl index 83928efa0..9dc42dff2 100644 --- a/src/optimization_container_keys.jl +++ b/src/optimization_container_keys.jl @@ -18,7 +18,7 @@ function encode_symbol( ::Type{T}, ::Type{U}, meta::String = CONTAINER_KEY_EMPTY_META, -) where {T<:InfrastructureSystemsComponent U} +) where {T<:InfrastructureSystemsComponent, U} meta_ = isempty(meta) ? meta : _DELIMITER * meta T_ = replace(replace(strip_module_name(T), "{" => _DELIMITER), "}" => "") return Symbol("$(strip_module_name(string(U)))$(_DELIMITER)$(T_)" * meta_)