Skip to content

Commit d1b6fee

Browse files
committed
Don't dulicate constants into aliases
1 parent bed1ca4 commit d1b6fee

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

mkdocstrings/handlers/crystal/items.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,11 @@ def aliased(self) -> crystal_html.TextWithLinks:
269269
except KeyError:
270270
return crystal_html.TextWithLinks(self.data["aliased"], ())
271271

272+
@property
273+
def constants(self):
274+
# Crystal duplicates constants into aliases, but that's undesirable.
275+
return DocMapping(())
276+
272277

273278
class DocAnnotation(DocType):
274279
"""A [DocType][mkdocstrings.handlers.crystal.items.DocType] representing a Crystal annotation."""

0 commit comments

Comments
 (0)