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
3636abstract type AbstractQuantity{T,D} end
3737
3838"""
39- Dimensions{R} <: AbstractDimensions{R}
39+ Dimensions{R<:Real } <: AbstractDimensions{R}
4040
4141A type representing the dimensions of a quantity, with each
4242field giving the power of the corresponding dimension. For
8080const DEFAULT_DIM_TYPE = Dimensions{DEFAULT_DIM_BASE_TYPE}
8181
8282"""
83- Quantity{T,D} <: AbstractQuantity{T,D}
83+ Quantity{T,D<:AbstractDimensions } <: AbstractQuantity{T,D}
8484
8585Physical quantity with value `value` of type `T` and dimensions `dimensions` of type `D`.
8686For example, the velocity of an object with mass 1 kg and velocity
You can’t perform that action at this time.
0 commit comments