Skip to content

Commit 1d85f85

Browse files
committed
Formatting
1 parent 0567e47 commit 1d85f85

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/types.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ end
9999
const DEFAULT_DIM_TYPE = Dimensions{DEFAULT_DIM_BASE_TYPE}
100100

101101
"""
102-
Quantity{T<:Number,D<:AbstractDimensions} <: AbstractQuantity{T,D}
102+
Quantity{T<:Number,D<:AbstractDimensions} <: AbstractQuantity{T,D} <: Number
103103
104104
Physical quantity with value `value` of type `T` and dimensions `dimensions` of type `D`.
105105
For example, the velocity of an object with mass 1 kg and velocity
@@ -136,10 +136,10 @@ struct Quantity{T<:Number,D<:AbstractDimensions} <: AbstractQuantity{T,D}
136136
end
137137

138138
"""
139-
GenericQuantity{T<:Any,D<:AbstractDimensions} <: AbstractGenericQuantity{T,D}
139+
GenericQuantity{T<:Any,D<:AbstractDimensions} <: AbstractGenericQuantity{T,D} <: Any
140140
141-
This has the same behavior as `Quantity` but is subtyped to `AbstractGenericQuantity`
142-
rather than `AbstractQuantity`.
141+
This has the same behavior as `Quantity` but is subtyped to `AbstractGenericQuantity <: Any`
142+
rather than `AbstractQuantity <: Number`.
143143
"""
144144
struct GenericQuantity{T,D<:AbstractDimensions} <: AbstractGenericQuantity{T,D}
145145
value::T

0 commit comments

Comments
 (0)