From 248948e9dc3482b383d307f73765042fd85cd02e Mon Sep 17 00:00:00 2001 From: Dawid Kraczkowski Date: Wed, 6 Dec 2023 13:53:32 +0100 Subject: [PATCH] Add missing force statements --- chili/decoder.py | 2 +- chili/encoder.py | 2 +- pyproject.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/chili/decoder.py b/chili/decoder.py index 4d97fe4..0173777 100644 --- a/chili/decoder.py +++ b/chili/decoder.py @@ -496,7 +496,7 @@ def build_type_decoder( if origin_type is None and is_dataclass(a_type): if issubclass(a_type, Generic): # type: ignore raise DecoderError.invalid_type - return ClassDecoder(a_type, extra_decoders) + return ClassDecoder(a_type, extra_decoders, force) if origin_type and is_dataclass(origin_type): if issubclass(origin_type, Generic): # type: ignore diff --git a/chili/encoder.py b/chili/encoder.py index 3512dcc..800c257 100644 --- a/chili/encoder.py +++ b/chili/encoder.py @@ -384,7 +384,7 @@ def build_type_encoder( if origin_type is None and is_dataclass(a_type): if issubclass(a_type, Generic): # type: ignore raise EncoderError.invalid_type - return ClassEncoder(a_type, extra_encoders) + return ClassEncoder(a_type, extra_encoders, force) if origin_type and is_dataclass(origin_type): if issubclass(origin_type, Generic): # type: ignore diff --git a/pyproject.toml b/pyproject.toml index be1ada4..b308081 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,7 +22,7 @@ license = "MIT" name = "chili" readme = "README.md" repository = "https://github.com/kodemore/chili" -version = "2.8.3" +version = "2.8.4" [tool.poetry.dependencies] gaffe = ">=0.3.0"