File tree 1 file changed +7
-5
lines changed 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -105,17 +105,19 @@ def __init__(
105
105
if middleware is None :
106
106
middleware = graphene_settings .MIDDLEWARE
107
107
108
- self .schema = self . schema or schema
108
+ self .schema = schema or self . schema
109
109
if middleware is not None :
110
110
if isinstance (middleware , MiddlewareManager ):
111
111
self .middleware = middleware
112
112
else :
113
113
self .middleware = list (instantiate_middleware (middleware ))
114
114
self .root_value = root_value
115
- self .pretty = self .pretty or pretty
116
- self .graphiql = self .graphiql or graphiql
117
- self .batch = self .batch or batch
118
- self .execution_context_class = execution_context_class
115
+ self .pretty = pretty or self .pretty
116
+ self .graphiql = graphiql or self .graphiql
117
+ self .batch = batch or self .batch
118
+ self .execution_context_class = (
119
+ execution_context_class or self .execution_context_class
120
+ )
119
121
if subscription_path is None :
120
122
self .subscription_path = graphene_settings .SUBSCRIPTION_PATH
121
123
You can’t perform that action at this time.
0 commit comments