Skip to content

Commit 407adcc

Browse files
committed
fix: Add missing __post_init__ run from function variant
1 parent 1420d6e commit 407adcc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/fieldenum/_fieldenum.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,9 @@ def __init__(self, *args, **kwargs) -> None:
431431
result = item._func(*bound.args, **bound.kwargs)
432432
if result is not None:
433433
raise TypeError("Initializer should return None.")
434+
435+
post_init = getattr(self, "__post_init__", lambda: None)
436+
post_init()
434437
# fmt: on
435438

436439
self._actual = ConstructedVariant

0 commit comments

Comments
 (0)