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
Hi, I have some problems
# -*- coding: utf-8 -*- from kim import field, Mapper class A(Mapper): __type__ = dict a = field.Integer() class B(Mapper): __type__ = dict b = field.Integer() class C(A, B): __type__ = dict c = field.Integer() sample = {'a': 1, 'b': 2, 'c': 3} print('serialized', C(obj=sample).serialize()) print('marshalled', C(data=sample).marshal())
Output is:
python3.7 mapper_test.py {'a': 1, 'c': 3} {'a': 1, 'c': 3} Process finished with exit code 0
Is can Kim have right way to create mapper from inheritance?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, I have some problems
Output is:
Is can Kim have right way to create mapper from inheritance?
The text was updated successfully, but these errors were encountered: