Skip to content

Commit

Permalink
Add missing force statements
Browse files Browse the repository at this point in the history
  • Loading branch information
dkraczkowski committed Dec 6, 2023
1 parent 3e3b2f7 commit 248948e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion chili/decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion chili/encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 248948e

Please sign in to comment.