Skip to content

Commit 7b548bf

Browse files
committed
do not assume Tuple category type
1 parent 7edaf03 commit 7b548bf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

NDTensors/src/lib/Sectors/src/category_product.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,11 @@ function recover_category_product_type(T::Type, c::CategoryProduct)
113113
return recover_category_product_type(T, categories(c))
114114
end
115115

116-
function recover_category_product_type(
117-
T::Type{<:CategoryProduct}, cats::Tuple{Vararg{AbstractCategory}}
118-
)
116+
function recover_category_product_type(T::Type{<:CategoryProduct}, cats)
119117
return recover_category_product_type(categories_type(T), cats)
120118
end
121119

122-
function recover_category_product_type(T::Type, cats::Tuple{Vararg{AbstractCategory}})
120+
function recover_category_product_type(T::Type, cats)
123121
return CategoryProduct(T(cats))
124122
end
125123

0 commit comments

Comments
 (0)