From 1c50c624bee239b4678ed2d6c01847f3cfb09597 Mon Sep 17 00:00:00 2001 From: Carlo Lucibello Date: Fri, 11 Nov 2022 19:45:53 +0100 Subject: [PATCH] deprecate rpad correctly (#131) * cl/rpad * bump --- Project.toml | 2 +- src/deprecations.jl | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 33e2a80..ca42c9b 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "MLUtils" uuid = "f1d291b0-491e-4a28-83b9-f70985020b54" authors = ["Carlo Lucibello and contributors"] -version = "0.3.0" +version = "0.3.1" [deps] ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4" diff --git a/src/deprecations.jl b/src/deprecations.jl index 7545002..797a14f 100644 --- a/src/deprecations.jl +++ b/src/deprecations.jl @@ -9,4 +9,5 @@ @deprecate eachbatch(data; size=1, kws...) eachobs(data; batchsize=size, kws...) # Deprecated in v0.3 +import Base: rpad @deprecate rpad(v::AbstractVector, n::Integer, p) rpad_constant(v, n, p)