-
-
Notifications
You must be signed in to change notification settings - Fork 136
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
Extend schema crashes on unbound methods #43
Comments
Cito
added a commit
that referenced
this issue
Jul 15, 2019
Right, that's a bug. Can you check whether the above fix solves the problem? I'll deploy a bugfix release then. |
That seems to do it. Thanks for the quick one! |
Cito
added a commit
that referenced
this issue
Jul 17, 2019
Thank you for the bug report. This is now fixed in core-next 1.1.1 and core 3.0.0a1. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
Context: Windows 10,
ariadne==0.5
,graphql-core-next==1.1.0
Recently upgraded to the latest version of
graphql-core-next
, and I'm getting the following exception when usingextend_schema
:This new version tries to get the
__func__
attribute of the literal parser for a custom scalar, which assumes that the parser is a bound method. There are many libraries, incl.ariande
, that attach such parsers (and resolvers) after the scalars have been initialised. Therefore, these newly attached methods are no longer bound. I see no reason for this constraint, so could you please fix?Many thanks.
The text was updated successfully, but these errors were encountered: