Skip to content

Commit

Permalink
fix: Fix JSON unable to serialize docstring kind values
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Feb 13, 2022
1 parent 19eac2e commit 91e6719
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/griffe/encoders.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand All @@ -24,6 +25,7 @@ def _enum_value(obj):
PosixPath: str,
ParameterKind: _enum_value,
Kind: _enum_value,
DocstringSectionKind: _enum_value,
set: list,
}

Expand Down

0 comments on commit 91e6719

Please sign in to comment.