diff --git a/src/griffe/encoders.py b/src/griffe/encoders.py index 523c888c..180bf1d5 100644 --- a/src/griffe/encoders.py +++ b/src/griffe/encoders.py @@ -12,6 +12,7 @@ from typing import Any, Callable, Type from griffe.dataclasses import Attribute, Class, Function, Kind, Module, Object, ParameterKind +from griffe.docstrings.dataclasses import DocstringSectionKind from griffe.docstrings.parsers import Parser @@ -24,6 +25,7 @@ def _enum_value(obj): PosixPath: str, ParameterKind: _enum_value, Kind: _enum_value, + DocstringSectionKind: _enum_value, set: list, }