Skip to content

Commit 6c01814

Browse files
committed
Update API call with new naming scheme
1 parent 88906d8 commit 6c01814

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/types.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,11 +195,11 @@ new_dimensions(::Type{D}, dims...) where {D<:AbstractDimensions} = constructorof
195195
new_quantity(::Type{Q}, l, r) where {Q<:UnionAbstractQuantity} = constructorof(Q)(l, r)
196196

197197
dim_type(::Type{Q}) where {T,D<:AbstractDimensions,Q<:UnionAbstractQuantity{T,D}} = D
198-
dim_type(::Type{<:AbstractUnionQuantity}) = DEFAULT_DIM_TYPE
198+
dim_type(::Type{<:UnionAbstractQuantity}) = DEFAULT_DIM_TYPE
199199

200200
"""
201201
constructorof(::Type{<:AbstractDimensions})
202-
constructorof(::Type{<:AbstractUnionQuantity})
202+
constructorof(::Type{<:UnionAbstractQuantity})
203203
204204
Return the constructor of the given type. This is used to create new objects
205205
of the same type as the input. Overload a method for a new type, especially
@@ -211,7 +211,7 @@ constructorof(::Type{<:GenericQuantity}) = GenericQuantity
211211

212212
"""
213213
with_type_parameters(::Type{<:AbstractDimensions}, ::Type{R})
214-
with_type_parameters(::Type{<:AbstractUnionQuantity}, ::Type{T}, ::Type{D})
214+
with_type_parameters(::Type{<:UnionAbstractQuantity}, ::Type{T}, ::Type{D})
215215
216216
Return the type with the given type parameters instead of the ones in the input type.
217217
This is used to get `Dimensions{R}` from input `(Dimensions{R1}, R)`, for example.

0 commit comments

Comments
 (0)