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

Remove allow_inheritance #270

Merged
merged 1 commit into from
May 8, 2020
Merged

Remove allow_inheritance #270

merged 1 commit into from
May 8, 2020

Conversation

lafrech
Copy link
Collaborator

@lafrech lafrech commented May 6, 2020

This feature behaves differently on Document and EmbeddedDocument.

As I was about to make both consistent, I realized that I didn't really see the point of the feature. It seems to only serve the purpose of triggering an exception if someone tries to inherit a document class that was not meant to. It has no influence on the cls field.

Let's assume we know what we're doing and, rather than default to allow_inheritance=True for Document to match EmbeddedDocument, remove the feature.

@lafrech lafrech added this to the 3.0 milestone May 6, 2020
@coveralls
Copy link

coveralls commented May 6, 2020

Coverage Status

Coverage decreased (-0.02%) to 95.664% when pulling 28b9c54 on remove_allow_inheritance into 02ee1c8 on master.

@lafrech lafrech merged commit faa5cf3 into master May 8, 2020
@lafrech lafrech deleted the remove_allow_inheritance branch May 8, 2020 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants