Skip to content

Commit

Permalink
fix ambiguous method error of convert in Julia v1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
qyli committed Apr 22, 2024
1 parent e4d6848 commit 14aa450
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 = "FiniteMPS"
uuid = "6b572690-f317-4dad-a5fe-5fe73a0b7d42"
authors = ["qyli <[email protected]>"]
version = "1.4.0"
version = "1.4.1"

[deps]
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"
Expand Down
2 changes: 1 addition & 1 deletion src/Observables/convert.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ function convert(::Type{NamedTuple}, Root::InteractionTreeNode; kwargs...)
return NamedTuple{k}(values(Rslt))
end

function convert(::Type{T}, Tree::ObservableTree; kwargs...) where T
function convert(::Type{T}, Tree::ObservableTree; kwargs...) where T <:Union{NamedTuple, Dict}
return convert(T, Tree.Root; kwargs...)
end

2 comments on commit 14aa450

@Qiaoyi-Li
Copy link
Owner

Choose a reason for hiding this comment

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

@JuliaRegistrator register

Release notes:

  • fix ambiguous method error of convert in Julia v1.9

@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/105421

Tagging

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 v1.4.1 -m "<description of version>" 14aa4505841bac430ea169458f0011f4f8a11d9d
git push origin v1.4.1

Please sign in to comment.