Closed renovate[bot] closed 3 years ago
Merging #99 (a6790b6) into master (5d20bba) will not change coverage. The diff coverage is
n/a
.
@@ Coverage Diff @@
## master #99 +/- ##
=======================================
Coverage 97.45% 97.45%
=======================================
Files 29 29
Lines 983 983
=======================================
Hits 958 958
Misses 25 25
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 5d20bba...a6790b6. Read the comment docs.
This PR contains the following updates:
2.3
->2.4
Release Notes
Fatal1ty/mashumaro
### [`v2.4`](https://togithub.com/Fatal1ty/mashumaro/releases/v2.4) [Compare Source](https://togithub.com/Fatal1ty/mashumaro/compare/v2.3...v2.4) ## Changes - Fixed calling `to_dict` method of a class that doesn't have [`omit_none`](https://togithub.com/Fatal1ty/mashumaro#add-omit_none-keyword-argument) and [`by_alias`](https://togithub.com/Fatal1ty/mashumaro#add-by_alias-keyword-argument) keyword arguments added in case it has a field of the type that has these arguments added: ```python @dataclass class A(DataClassDictMixin): x: Optional[int] = None class Config(BaseConfig): aliases = {"x": "x_alias"} code_generation_options = [ TO_DICT_ADD_OMIT_NONE_FLAG, TO_DICT_ADD_BY_ALIAS_FLAG, ] @dataclass class B(DataClassDictMixin): a: Optional[A] = None ### This caused an exception NameError: name 'omit_none' is not defined print(B(a=A(1)).to_dict()) ```Configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.