Skip to content

Commit 531145c

Browse files
authored
fix: add type annotation to step parameters in AutoFiniteDiff (#104)
1 parent 2aafe20 commit 531145c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ADTypes"
22
uuid = "47edcb42-4c32-4615-8424-f2b9edc5f35b"
33
authors = ["Vaibhav Dixit <[email protected]>, Guillaume Dalle and contributors"]
4-
version = "1.12.0"
4+
version = "1.12.1"
55

66
[deps]
77
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"

src/dense.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,12 @@ Defined by [ADTypes.jl](https://github.com/SciML/ADTypes.jl).
116116
- `relstep`: relative finite difference step size
117117
- `absstep`: absolute finite difference step size
118118
"""
119-
Base.@kwdef struct AutoFiniteDiff{T1, T2, T3} <: AbstractADType
119+
Base.@kwdef struct AutoFiniteDiff{T1, T2, T3, S1, S2} <: AbstractADType
120120
fdtype::T1 = Val(:forward)
121121
fdjtype::T2 = fdtype
122122
fdhtype::T3 = Val(:hcentral)
123-
relstep = nothing
124-
absstep = nothing
123+
relstep::S1 = nothing
124+
absstep::S2 = nothing
125125
end
126126

127127
mode(::AutoFiniteDiff) = ForwardMode()

0 commit comments

Comments
 (0)