Skip to content

Commit 7310223

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

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/product.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ 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+
3134
const TupleProductSector{T <: SectorTuple} = ProductSector{T}
3235
const NamedProductSector{T <: SectorTuple} = ProductSector{<:NamedTuple{<:Any, T}}
3336

0 commit comments

Comments
 (0)