File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ def _resolve(self) -> Union[StrawberryType, type]:
145
145
if self ._is_lazy_type (evaled_type ):
146
146
return evaled_type
147
147
if self ._is_streamable (evaled_type , args ):
148
- return self .create_list (list [evaled_type ])
148
+ return self .create_list (list [evaled_type ]) # type: ignore[valid-type, assignment]
149
149
if self ._is_list (evaled_type ):
150
150
return self .create_list (evaled_type )
151
151
if self ._is_maybe (evaled_type ):
Original file line number Diff line number Diff line change 7
7
from strawberry .types import ExecutionResult
8
8
9
9
try :
10
- from graphql import (
10
+ from graphql import ( # type: ignore[attr-defined]
11
11
ExperimentalIncrementalExecutionResults as GraphQLIncrementalExecutionResults ,
12
12
)
13
- from graphql .execution import experimental_execute_incrementally
14
- from graphql .type .directives import (
13
+ from graphql .execution import (
14
+ experimental_execute_incrementally , # type: ignore[attr-defined]
15
+ )
16
+ from graphql .type .directives import ( # type: ignore[attr-defined]
15
17
GraphQLDeferDirective ,
16
18
GraphQLStreamDirective ,
17
19
)
22
24
)
23
25
24
26
except ImportError :
25
- GraphQLIncrementalExecutionResults = type (None )
27
+ GraphQLIncrementalExecutionResults = type (None ) # type: ignore[assignment]
26
28
27
29
incremental_execution_directives = []
28
30
experimental_execute_incrementally = None
Original file line number Diff line number Diff line change @@ -322,16 +322,16 @@ class Query:
322
322
graphql_types .append (graphql_type )
323
323
324
324
try :
325
- directives = specified_directives + tuple (graphql_directives )
325
+ directives = specified_directives + tuple (graphql_directives ) # type: ignore
326
326
327
327
if self .config .enable_experimental_incremental_execution :
328
- directives = tuple (directives ) + tuple (incremental_execution_directives )
328
+ directives = tuple (directives ) + tuple (incremental_execution_directives ) # type: ignore
329
329
330
330
self ._schema = GraphQLSchema (
331
331
query = query_type ,
332
332
mutation = mutation_type ,
333
333
subscription = subscription_type if subscription else None ,
334
- directives = directives ,
334
+ directives = directives , # type: ignore
335
335
types = graphql_types ,
336
336
extensions = {
337
337
GraphQLCoreConverter .DEFINITION_BACKREF : self ,
You can’t perform that action at this time.
0 commit comments