@@ -1272,6 +1272,7 @@ class GraphQLInputObjectTypeKwargs(GraphQLNamedTypeKwargs, total=False):
1272
1272
1273
1273
fields : GraphQLInputFieldMap
1274
1274
out_type : GraphQLInputFieldOutType | None
1275
+ is_one_of : bool
1275
1276
1276
1277
1277
1278
class GraphQLInputObjectType (GraphQLNamedType ):
@@ -1301,6 +1302,7 @@ class GeoPoint(GraphQLInputObjectType):
1301
1302
1302
1303
ast_node : InputObjectTypeDefinitionNode | None
1303
1304
extension_ast_nodes : tuple [InputObjectTypeExtensionNode , ...]
1305
+ is_one_of : bool
1304
1306
1305
1307
def __init__ (
1306
1308
self ,
@@ -1311,6 +1313,7 @@ def __init__(
1311
1313
extensions : dict [str , Any ] | None = None ,
1312
1314
ast_node : InputObjectTypeDefinitionNode | None = None ,
1313
1315
extension_ast_nodes : Collection [InputObjectTypeExtensionNode ] | None = None ,
1316
+ is_one_of : bool = False ,
1314
1317
) -> None :
1315
1318
super ().__init__ (
1316
1319
name = name ,
@@ -1322,6 +1325,7 @@ def __init__(
1322
1325
self ._fields = fields
1323
1326
if out_type is not None :
1324
1327
self .out_type = out_type # type: ignore
1328
+ self .is_one_of = is_one_of
1325
1329
1326
1330
@staticmethod
1327
1331
def out_type (value : dict [str , Any ]) -> Any :
@@ -1340,6 +1344,7 @@ def to_kwargs(self) -> GraphQLInputObjectTypeKwargs:
1340
1344
out_type = None
1341
1345
if self .out_type is GraphQLInputObjectType .out_type
1342
1346
else self .out_type ,
1347
+ is_one_of = self .is_one_of ,
1343
1348
)
1344
1349
1345
1350
def __copy__ (self ) -> GraphQLInputObjectType : # pragma: no cover
0 commit comments