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]:
145145 if self ._is_lazy_type (evaled_type ):
146146 return evaled_type
147147 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]
149149 if self ._is_list (evaled_type ):
150150 return self .create_list (evaled_type )
151151 if self ._is_maybe (evaled_type ):
Original file line number Diff line number Diff line change 77from strawberry .types import ExecutionResult
88
99try :
10- from graphql import (
10+ from graphql import ( # type: ignore[attr-defined]
1111 ExperimentalIncrementalExecutionResults as GraphQLIncrementalExecutionResults ,
1212 )
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]
1517 GraphQLDeferDirective ,
1618 GraphQLStreamDirective ,
1719 )
2224 )
2325
2426except ImportError :
25- GraphQLIncrementalExecutionResults = type (None )
27+ GraphQLIncrementalExecutionResults = type (None ) # type: ignore[assignment]
2628
2729 incremental_execution_directives = []
2830 experimental_execute_incrementally = None
Original file line number Diff line number Diff line change @@ -322,16 +322,16 @@ class Query:
322322 graphql_types .append (graphql_type )
323323
324324 try :
325- directives = specified_directives + tuple (graphql_directives )
325+ directives = specified_directives + tuple (graphql_directives ) # type: ignore
326326
327327 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
329329
330330 self ._schema = GraphQLSchema (
331331 query = query_type ,
332332 mutation = mutation_type ,
333333 subscription = subscription_type if subscription else None ,
334- directives = directives ,
334+ directives = directives , # type: ignore
335335 types = graphql_types ,
336336 extensions = {
337337 GraphQLCoreConverter .DEFINITION_BACKREF : self ,
You can’t perform that action at this time.
0 commit comments