Changelog
This page summarizes historic changes in the library. Please also see the release page
0.3
0.3.4
check_modeldoes not outputunhashablewarnings.Added
pydantic_sweep.convertto convert between json, yaml and Python code dumps of pydantic Models. This is also an entrypoint that can be executed aspython -m pydantic_sweep.convert source target --model 'path.to.Model'initializenow accepts any mixture ofstr, tuple, and dot-separated keys fordefaultandconstantvalues.Added a
model_replacemethod to create a copy of a pydantic model while overwriting certain values.
0.3.3
check_modelnow warns on non-hashable type hints (can be configured)check_modelnow explicitly forbids thearbitrary_types_allowedpydantic setting.
0.3.2
Fix for Python 3.10
Add
examplefolderLicense documentation and examples under 0BSD
0.3.1
initializeaccepts nested dictionaries fordefault/constantarguments.
0.3.0
fieldnow checks that values are hashable by default. This can be disabled by settingcheck=False.Added
as_hashableutility to easily compare different configs and pydantic Models.Added
check_uniqueutility to check whether models are unique.
0.2
0.2.1
BaseModelgained a custom model_validator that guards against ambiguous model selection from union types in nested models.Relaxed version requirements of
pydanticandmore-itertools
0.2.0
DefaultValueis checked against conflicting settings the same way as normal valuesPassing
DefaultValueto thedefault/constantargument ofinitializeworks as expected.
0.1
Initial release