From 3a6685f2c0a12e495fe58a51dc838bbab54ea30b Mon Sep 17 00:00:00 2001 From: Evan Patterson Date: Fri, 28 Jan 2022 11:29:41 -0800 Subject: [PATCH] BUG: Docstring not attached to concrete acset types. --- src/categorical_algebra/CSetDataStructures.jl | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/categorical_algebra/CSetDataStructures.jl b/src/categorical_algebra/CSetDataStructures.jl index 496084ff8..8b3b71471 100644 --- a/src/categorical_algebra/CSetDataStructures.jl +++ b/src/categorical_algebra/CSetDataStructures.jl @@ -97,13 +97,10 @@ macro acset_type(head) Expr(:call, name, schema, idx_args...) => (name, schema, idx_args) _ => error("Unsupported head for @acset_type") end - abstract_name = Symbol("Abstract" * string(name)) - # We assign this to an anonymous variable so that there is something - # to attach documentation to. - # TODO: this is a hack and there should be a better way quote - tmp = $(esc(:eval))($(GlobalRef(CSetDataStructures, :struct_acset))( + $(esc(:eval))($(GlobalRef(CSetDataStructures, :struct_acset))( $(Expr(:quote, name)), $(Expr(:quote, parent)), $(esc(schema)), $(idx_args...))) + Core.@__doc__ $(esc(name)) end end