Skip to content

Commit c55e43a

Browse files
committed
remove pre-existing description type
I'm not sure if it was used, tests will tell
1 parent 3d52a72 commit c55e43a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/variables.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
struct VariableUnit end
22
struct VariableConnectType end
33
struct VariableNoiseType end
4-
struct VariableDescriptionType end
54
struct VariableInput end
65
struct VariableOutput end
76
struct VariableIrreducible end
87
Symbolics.option_to_metadata_type(::Val{:unit}) = VariableUnit
98
Symbolics.option_to_metadata_type(::Val{:connect}) = VariableConnectType
109
Symbolics.option_to_metadata_type(::Val{:noise}) = VariableNoiseType
11-
Symbolics.option_to_metadata_type(::Val{:description}) = VariableDescriptionType
1210
Symbolics.option_to_metadata_type(::Val{:input}) = VariableInput
1311
Symbolics.option_to_metadata_type(::Val{:output}) = VariableOutput
1412
Symbolics.option_to_metadata_type(::Val{:irreducible}) = VariableIrreducible
@@ -288,3 +286,7 @@ end
288286
function hasdescription(x)
289287
getdescription(x) != ""
290288
end
289+
290+
function Base.Docs.getdoc(p::Num)
291+
string(Base.Docs.@doc(p), " ", getdescription(p))
292+
end

0 commit comments

Comments
 (0)