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

drop singledispatch package dependency #233

Closed
wants to merge 2 commits into from

Conversation

WeepingClown13
Copy link
Contributor

Drop singledispatch package dependency altogether.

Rationale
What the singledispatch import function does is try to fetch it from the builtin functools module first and in case of a failure get it from the singledispatch pakakge. Python added singledispatch in functools in v3.4 and the lowest supported python version for graphene-mongo is v3.8. This means that the singledisptach import is always going to happen from functools and hence the dependency on singledispatch package is simply an overhead, not to mention removing it allows cleaning up a part of code that never gets executed,

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.

2 participants