Skip to content

Commit

Permalink
Merge pull request #7 from JuliaCollections/convert-invalidations
Browse files Browse the repository at this point in the history
Convert invalidations (fix #5)
  • Loading branch information
Tokazama authored Aug 25, 2022
2 parents 986fa81 + 5403a4d commit 9fb29c6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "PropertyDicts"
uuid = "f8a19df8-e894-5f55-a973-672c1158cbca"
license = "MIT"
version = "0.1.1"
version = "0.1.2"

[compat]
julia = "1"
Expand Down
5 changes: 0 additions & 5 deletions src/PropertyDicts.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ Base.getproperty(d::PropertyDict, n::String) = getindex(d, n)
Base.setproperty!(d::PropertyDict, n::Symbol, v) = setindex!(d, v, n)
Base.setproperty!(d::PropertyDict, n::String, v) = setindex!(d, v, n)

Base.convert(::Type{Any}, d::PropertyDict) = d
Base.convert(::Type{PropertyDict{K,V,T}}, d::PropertyDict{K,V,T}) where {K,V,T<:AbstractDict{K,V}} = d
Base.convert(::Type{T}, d::PropertyDict) where T <: AbstractDict = T === AbstractDict ? d : convert(T, PropertyDicts.unwrap(d))
Base.convert(::Type{T}, d::PropertyDict) where T = convert(T, PropertyDicts.unwrap(d))

Base.get(d::PropertyDict, k, default) = get(unwrap(d), k, default)
Base.get(d::PropertyDict{Symbol}, k::AbstractString, default) = get(d, Symbol(k), default)
Base.get(d::PropertyDict{<:AbstractString}, k::Symbol, default) = get(d, String(k), default)
Expand Down

2 comments on commit 9fb29c6

@Tokazama
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/67065

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 v0.1.2 -m "<description of version>" 9fb29c65d2f07508d342b44f8a11127672ad0099
git push origin v0.1.2

Please sign in to comment.