Skip to content

Commit 6e7e7a8

Browse files
Merge pull request #41 from JuliaDiffEq/tuple
Add ismutable(tuple) = false
2 parents e37c451 + 174e93f commit 6e7e7a8

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ArrayInterface"
22
uuid = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
3-
version = "2.5.0"
3+
version = "2.5.1"
44

55
[deps]
66
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"

src/ArrayInterface.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ ismutable(x) = ismutable(typeof(x))
1717
ismutable(::Type{<:AbstractArray}) = true
1818
ismutable(::Type{<:Number}) = false
1919
ismutable(::Type{<:AbstractRange}) = false
20+
ismutable(::Type{<:Tuple}) = false
2021

2122
# Piracy
2223
function Base.setindex(x::AbstractArray,v,i...)

test/runtests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ using StaticArrays
77
@test ArrayInterface.ismutable(@SVector [1,2,3]) == false
88
@test ArrayInterface.ismutable(@MVector [1,2,3]) == true
99
@test ArrayInterface.ismutable(1:10) == false
10+
@test ArrayInterface.ismutable((0.1,1.0)) == false
1011

1112
using LinearAlgebra, SparseArrays
1213

0 commit comments

Comments
 (0)