Skip to content

Commit 3d7bf00

Browse files
authored
Apply suggestion from @mtfishman
1 parent da6355c commit 3d7bf00

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/abstractsparsearrayinterface.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ using TypeParameterAccessors: unspecify_type_parameters, unwrap_array, unwrap_ar
4343
function densetype(arraytype::Type{<:AbstractArray})
4444
return unspecify_type_parameters(unwrap_array_type(arraytype))
4545
end
46+
# TODO: Ideally this would be defined as `densetype(typeof(a))` but that is less general right now since `unwrap_array_type` is defined on fewer arrays, since it is based on `parentype` rather than `parent`.
4647
function densetype(a::AbstractArray)
4748
return unspecify_type_parameters(typeof(unwrap_array(a)))
4849
end

0 commit comments

Comments
 (0)