Skip to content
New issue

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

docs: Add more useful example for KeysSubset #96

Open
Arfey opened this issue Nov 11, 2019 · 1 comment
Open

docs: Add more useful example for KeysSubset #96

Arfey opened this issue Nov 11, 2019 · 1 comment
Assignees

Comments

@Arfey
Copy link
Collaborator

@Arfey Arfey commented Nov 11, 2019

Piece of code to think:

def mapping_region(order: Order) -> Dict[str, Any]:
    region = {
        'id': order.get('region_id'),
        'name': order.get('region_name')
    }

    return {'region': region}


KeysSubset('region_id', 'region_name'): mapping_region,
@Arfey Arfey changed the title docs: Add more useful example for docs: Add more useful example for KeysSubset Nov 11, 2019
@bogdan-zs
Copy link

@bogdan-zs bogdan-zs commented Nov 11, 2019

take this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.