Skip to content

Commit 0ab15a5

Browse files
committed
Attempt to fix Julia LTS
1 parent aa3efc4 commit 0ab15a5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/product.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ ProductSector{T}(x) where {T} = ProductSector{T}(convert(T, x))
2828
ProductSector{T}(x, y...) where {T} = ProductSector{T}((x, y...))
2929
ProductSector{T}(x::Sector) where {T} = ProductSector{T}((x,))
3030

31+
# necessary in Julia 1.10:
32+
ProductSector{NamedTuple{K, V}}(x::V) where {K, V} = ProductSector{NamedTuple{K, V}}(NamedTuple{K}(x))
33+
ProductSector{NamedTuple{K, V}}(x::Tuple) where {K, V} = ProductSector{NamedTuple{K, V}}(NamedTuple{K}(V(x)))
34+
3135
const TupleProductSector{T <: SectorTuple} = ProductSector{T}
3236
const NamedProductSector{T <: SectorTuple} = ProductSector{<:NamedTuple{<:Any, T}}
3337

0 commit comments

Comments
 (0)