diff --git a/src/JlWrap/objectarray.jl b/src/JlWrap/objectarray.jl index 92fb06ae..3b37f14c 100644 --- a/src/JlWrap/objectarray.jl +++ b/src/JlWrap/objectarray.jl @@ -10,7 +10,7 @@ PyObjectArray(x::AbstractArray{T,N}) where {T,N} = PyObjectArray{N}(x) pyobjectarray_finalizer(x::PyObjectArray) = GC.enqueue_all(x.ptrs) -Base.IndexStyle(x::PyObjectArray) = Base.IndexStyle(x.ptrs) +Base.IndexStyle(T::Type{<: PyObjectArray}) = Base.IndexStyle(fieldtype(T, :ptrs)) Base.length(x::PyObjectArray) = length(x.ptrs) diff --git a/src/NumpyDates/InlineTimeDelta64.jl b/src/NumpyDates/InlineTimeDelta64.jl index 62d9e19f..ae9e20dd 100644 --- a/src/NumpyDates/InlineTimeDelta64.jl +++ b/src/NumpyDates/InlineTimeDelta64.jl @@ -24,8 +24,6 @@ end # accessors -Dates.value(d::InlineTimeDelta64) = d.value - unitpair(::InlineTimeDelta64{U}) where {U} = unitpair(U) unitpair(::Type{InlineTimeDelta64{U}}) where {U} = unitpair(U) diff --git a/src/NumpyDates/TimeDelta64.jl b/src/NumpyDates/TimeDelta64.jl index ab0f9b69..b63c31de 100644 --- a/src/NumpyDates/TimeDelta64.jl +++ b/src/NumpyDates/TimeDelta64.jl @@ -23,8 +23,6 @@ end # accessors -Dates.value(d::TimeDelta64) = d.value - unitpair(d::TimeDelta64) = d.unit # constructors