Skip to content

Commit

Permalink
Fix warning: Unbound type parameter
Browse files Browse the repository at this point in the history
Julia 1.9 will warn users when using a package with an unbound type parameter.
We have fixed that issue in BioSequences v3, but some users might be stuck on
v2 for some time.
Since the fix is trivially easy and low-risk, we should backport it.
  • Loading branch information
jakobnissen committed Sep 23, 2022
1 parent 93d9462 commit be73167
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "BioSequences"
uuid = "7e6ae17a-c86d-528c-b3b9-7f778a29fe59"
authors = ["Ben J. Ward <[email protected]>"]
version = "2.0.5"
version = "2.0.6"

[deps]
BioGenerics = "47718e42-2ac5-11e9-14af-e5595289c2ea"
Expand Down
2 changes: 1 addition & 1 deletion src/search/pwm.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ end
# Broadcasting
struct PFMBroadcastStyle{S} <: Broadcast.BroadcastStyle end
Base.BroadcastStyle(::Type{PFM{S,T}}) where {S,T} = PFMBroadcastStyle{S}()
Base.BroadcastStyle(s1::PFMBroadcastStyle, s2::Base.BroadcastStyle) where {S,T} = s1
Base.BroadcastStyle(s1::PFMBroadcastStyle, s2::Base.BroadcastStyle) = s1
function Base.similar(bc::Broadcast.Broadcasted{PFMBroadcastStyle{S}}, elt::Type{T}) where {S, T}
return PFM{S, T}(similar(Array{T}, axes(bc)))
end
Expand Down

2 comments on commit be73167

@jakobnissen
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/68821

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v2.0.6 -m "<description of version>" be731671241c3fb1aa86e0b888def7e097cf9c47
git push origin v2.0.6

Please sign in to comment.