v2.0.0-beta6
Pre-release
Pre-release
Enhancements
-
Breaking: the minimum Python version has been bumped to
3.7
#444 -
Support generating Pydantic dataclasses. Pydantic dataclasses are are drop-in replacement for dataclasses in the standard library that additionally supports validation.
Pass--python_betterproto_opt=pydantic_dataclasses
to enable this feature. Refer to #406 and README.md for more information. -
Added support for
@generated
marker #382 -
Pull down the
include_default_values
argument toto_json()
#405 -
Pythonize input_type name in py_input_message #436
-
Widen
from_dict()
to accept anyMapping
#451 -
Replace
pkg_resources
withimportlib
#462
Bug Fixes
- Fix typechecker compatibility checks in server streaming methods #413
- Fix "empty-valued" repeated fields not being serialised #417
- Fix
dict
encoding for timezone-awaredatetimes
#468 - Fix
to_pydict()
serialization for optional fields #495 - Handle empty value objects properly #481
Thank you to all the contributors to this release and everyone for being so patient with its release.
New Contributors
- @anriha made their first contribution in #382
- @SamuelYvon made their first contribution in #405
- @sterliakov made their first contribution in #417
- @wouterh made their first contribution in #436
- @MarekPikula made their first contribution in #474
- @semicolonTransistor made their first contribution in #468
- @pi-slh made their first contribution in #462
- @nickderobertis made their first contribution in #495
- @Sriansh-raj made their first contribution in #502
- @a-khabarov made their first contribution in #498
- @hf-kklein made their first contribution in #445
- @olijeffers0n made their first contribution in #481
- @ashwin153 made their first contribution in #500
Full Changelog: v2.0.0b5...v.2.0.0b6