55
55
GraphQLInputField ,
56
56
GraphQLInputFieldMap ,
57
57
GraphQLInputObjectType ,
58
+ GraphQLInputObjectTypeKwargs ,
58
59
GraphQLInputType ,
59
60
GraphQLInterfaceType ,
61
+ GraphQLInterfaceTypeKwargs ,
60
62
GraphQLList ,
61
63
GraphQLNamedType ,
62
64
GraphQLNonNull ,
63
65
GraphQLNullableType ,
64
66
GraphQLObjectType ,
67
+ GraphQLObjectTypeKwargs ,
65
68
GraphQLOutputType ,
66
69
GraphQLScalarType ,
67
70
GraphQLSchema ,
68
71
GraphQLSchemaKwargs ,
69
72
GraphQLSpecifiedByDirective ,
70
73
GraphQLType ,
71
74
GraphQLUnionType ,
75
+ GraphQLUnionTypeKwargs ,
72
76
assert_schema ,
73
77
introspection_types ,
74
78
is_enum_type ,
@@ -326,7 +330,7 @@ def extend_named_type(self, type_: GraphQLNamedType) -> GraphQLNamedType:
326
330
raise TypeError (msg ) # pragma: no cover
327
331
328
332
def extend_input_object_type_fields (
329
- self , kwargs : dict [ str , Any ] , extensions : tuple [Any , ...]
333
+ self , kwargs : GraphQLInputObjectTypeKwargs , extensions : tuple [Any , ...]
330
334
) -> GraphQLInputFieldMap :
331
335
"""Extend GraphQL input object type fields."""
332
336
return {
@@ -392,7 +396,7 @@ def extend_scalar_type(self, type_: GraphQLScalarType) -> GraphQLScalarType:
392
396
)
393
397
394
398
def extend_object_type_interfaces (
395
- self , kwargs : dict [ str , Any ] , extensions : tuple [Any , ...]
399
+ self , kwargs : GraphQLObjectTypeKwargs , extensions : tuple [Any , ...]
396
400
) -> list [GraphQLInterfaceType ]:
397
401
"""Extend a GraphQL object type interface."""
398
402
return [
@@ -401,7 +405,7 @@ def extend_object_type_interfaces(
401
405
] + self .build_interfaces (extensions )
402
406
403
407
def extend_object_type_fields (
404
- self , kwargs : dict [ str , Any ] , extensions : tuple [Any , ...]
408
+ self , kwargs : GraphQLObjectTypeKwargs , extensions : tuple [Any , ...]
405
409
) -> GraphQLFieldMap :
406
410
"""Extend GraphQL object type fields."""
407
411
return {
@@ -430,7 +434,7 @@ def extend_object_type(self, type_: GraphQLObjectType) -> GraphQLObjectType:
430
434
)
431
435
432
436
def extend_interface_type_interfaces (
433
- self , kwargs : dict [ str , Any ] , extensions : tuple [Any , ...]
437
+ self , kwargs : GraphQLInterfaceTypeKwargs , extensions : tuple [Any , ...]
434
438
) -> list [GraphQLInterfaceType ]:
435
439
"""Extend GraphQL interface type interfaces."""
436
440
return [
@@ -439,7 +443,7 @@ def extend_interface_type_interfaces(
439
443
] + self .build_interfaces (extensions )
440
444
441
445
def extend_interface_type_fields (
442
- self , kwargs : dict [ str , Any ] , extensions : tuple [Any , ...]
446
+ self , kwargs : GraphQLInterfaceTypeKwargs , extensions : tuple [Any , ...]
443
447
) -> GraphQLFieldMap :
444
448
"""Extend GraphQL interface type fields."""
445
449
return {
@@ -470,7 +474,7 @@ def extend_interface_type(
470
474
)
471
475
472
476
def extend_union_type_types (
473
- self , kwargs : dict [ str , Any ] , extensions : tuple [Any , ...]
477
+ self , kwargs : GraphQLUnionTypeKwargs , extensions : tuple [Any , ...]
474
478
) -> list [GraphQLObjectType ]:
475
479
"""Extend types of a GraphQL union type."""
476
480
return [
0 commit comments