Skip to content

Commit

Permalink
Change for benchmarks (#7)
Browse files Browse the repository at this point in the history
* Change for benchmarks

* Update CI.yml for 1.9
  • Loading branch information
Azzaare authored Oct 6, 2023
1 parent 951495f commit b0dd622
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
matrix:
version:
- '1.6'
- '1.8'
- '1.9'
- 'nightly'
os:
- ubuntu-latest
Expand Down
6 changes: 3 additions & 3 deletions src/parameters.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b0dd622

Please sign in to comment.