diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 347bdee..ee07bed 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -19,7 +19,7 @@ jobs: matrix: version: - '1.6' - - '1.8' + - '1.9' - 'nightly' os: - ubuntu-latest diff --git a/src/parameters.jl b/src/parameters.jl index bc6b1a4..8736d5a 100644 --- a/src/parameters.jl +++ b/src/parameters.jl @@ -31,14 +31,14 @@ const USUAL_CONSTRAINT_PARAMETERS = [ Extracts the intersection between the `kargs` of `m` and `parameters` (defaults to `USUAL_CONSTRAINT_PARAMETERS`). """ -function extract_parameters(m::Method; parameters = USUAL_CONSTRAINT_PARAMETERS) +function extract_parameters(m::Method; parameters=USUAL_CONSTRAINT_PARAMETERS) return intersect(Base.kwarg_decl(m), parameters) end function extract_parameters( f::F; - parameters = USUAL_CONSTRAINT_PARAMETERS, -) where {F <: Function} + parameters=USUAL_CONSTRAINT_PARAMETERS +) where {F<:Function} return filter(!isempty, map(m -> extract_parameters(m; parameters), methods(f))) end