From 85c7c6b42248daf6bde8ec5166581a800ff1398e Mon Sep 17 00:00:00 2001 From: ChrisRackauckas-Claude Date: Sun, 16 Aug 2026 21:37:34 -0400 Subject: [PATCH] Declare documented gradient API public Co-Authored-By: Chris Rackauckas --- src/AbstractDifferentiation.jl | 4 ++++ test/runtests.jl | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/AbstractDifferentiation.jl b/src/AbstractDifferentiation.jl index 389f4c8..a545cf3 100644 --- a/src/AbstractDifferentiation.jl +++ b/src/AbstractDifferentiation.jl @@ -764,4 +764,8 @@ end end end +@static if VERSION >= v"1.11.0-DEV.469" + eval(Expr(:public, :gradient)) +end + end diff --git a/test/runtests.jl b/test/runtests.jl index 4716c57..44e1859 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -2,6 +2,10 @@ using AbstractDifferentiation using Documenter using Test +@static if VERSION >= v"1.11.0-DEV.469" + @test Base.ispublic(AbstractDifferentiation, :gradient) +end + @testset verbose = true "AbstractDifferentiation.jl" begin doctest(AbstractDifferentiation) include("test_utils.jl")