We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
from dataclasses import dataclass from adaptix import Retort, name_mapping @dataclass class Model: a: int b: int = 2 c: int = 3 retort = Retort(recipe=[name_mapping(Model, skip=['b'])]) assert retort.load({'a': 10, 'c': 30}, Model) == Model(a=10, b=30)
Result must be Model(a=10, c=30). This also affects on current converting implementation
Model(a=10, c=30)
The text was updated successfully, but these errors were encountered:
zhPavel
No branches or pull requests
Result must be
Model(a=10, c=30)
.This also affects on current converting implementation
The text was updated successfully, but these errors were encountered: