File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ object is stored in the `:dimensions` field. These fields can be accessed with
36
36
abstract type AbstractQuantity{T,D} end
37
37
38
38
"""
39
- Dimensions{R} <: AbstractDimensions{R}
39
+ Dimensions{R<:Real } <: AbstractDimensions{R}
40
40
41
41
A type representing the dimensions of a quantity, with each
42
42
field giving the power of the corresponding dimension. For
80
80
const DEFAULT_DIM_TYPE = Dimensions{DEFAULT_DIM_BASE_TYPE}
81
81
82
82
"""
83
- Quantity{T,D} <: AbstractQuantity{T,D}
83
+ Quantity{T,D<:AbstractDimensions } <: AbstractQuantity{T,D}
84
84
85
85
Physical quantity with value `value` of type `T` and dimensions `dimensions` of type `D`.
86
86
For example, the velocity of an object with mass 1 kg and velocity
You can’t perform that action at this time.
0 commit comments