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

Allow any Python object to be used as a handler object #242

Merged
merged 2 commits into from
Mar 4, 2024

Conversation

lonvia
Copy link
Member

@lonvia lonvia commented Mar 4, 2024

Switch to duck-typing for handlers. Any Python object which implements any of the functions node(), way(), relation(), area(), changeset() will be accepted as a handler in the osmium.apply() function.

@lonvia lonvia merged commit b491e45 into osmcode:master Mar 4, 2024
20 checks passed
@lonvia lonvia deleted the handlers-from-any-python-class branch March 4, 2024 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant