@@ -279,7 +279,6 @@ def extend_schema_args(
279
279
assume_valid = assume_valid ,
280
280
)
281
281
282
- # noinspection PyTypeChecker,PyUnresolvedReferences
283
282
def replace_type (self , type_ : GraphQLType ) -> GraphQLType :
284
283
"""Replace a GraphQL type."""
285
284
if is_list_type (type_ ):
@@ -295,7 +294,6 @@ def replace_named_type(self, type_: GraphQLNamedType) -> GraphQLNamedType:
295
294
# validation with validate_schema() will produce more actionable results.
296
295
return self .type_map [type_ .name ]
297
296
298
- # noinspection PyShadowingNames
299
297
def replace_directive (self , directive : GraphQLDirective ) -> GraphQLDirective :
300
298
"""Replace a GraphQL directive."""
301
299
if is_specified_directive (directive ):
@@ -351,7 +349,6 @@ def extend_input_object_type_fields(
351
349
** self .build_input_field_map (extensions ),
352
350
}
353
351
354
- # noinspection PyShadowingNames
355
352
def extend_input_object_type (
356
353
self ,
357
354
type_ : GraphQLInputObjectType ,
@@ -421,7 +418,6 @@ def extend_object_type_fields(
421
418
** self .build_field_map (extensions ),
422
419
}
423
420
424
- # noinspection PyShadowingNames
425
421
def extend_object_type (self , type_ : GraphQLObjectType ) -> GraphQLObjectType :
426
422
"""Extend a GraphQL object type."""
427
423
kwargs = type_ .to_kwargs ()
@@ -459,7 +455,6 @@ def extend_interface_type_fields(
459
455
** self .build_field_map (extensions ),
460
456
}
461
457
462
- # noinspection PyShadowingNames
463
458
def extend_interface_type (
464
459
self , type_ : GraphQLInterfaceType
465
460
) -> GraphQLInterfaceType :
@@ -500,7 +495,6 @@ def extend_union_type(self, type_: GraphQLUnionType) -> GraphQLUnionType:
500
495
),
501
496
)
502
497
503
- # noinspection PyShadowingNames
504
498
def extend_field (self , field : GraphQLField ) -> GraphQLField :
505
499
"""Extend a GraphQL field."""
506
500
return GraphQLField (
@@ -520,7 +514,6 @@ def extend_arg(self, arg: GraphQLArgument) -> GraphQLArgument:
520
514
)
521
515
)
522
516
523
- # noinspection PyShadowingNames
524
517
def get_operation_types (
525
518
self , nodes : Collection [SchemaDefinitionNode | SchemaExtensionNode ]
526
519
) -> dict [OperationType , GraphQLNamedType ]:
@@ -534,7 +527,6 @@ def get_operation_types(
534
527
for operation_type in node .operation_types or []
535
528
}
536
529
537
- # noinspection PyShadowingNames
538
530
def get_named_type (self , node : NamedTypeNode ) -> GraphQLNamedType :
539
531
"""Get name GraphQL type for a given named type node."""
540
532
name = node .name .value
0 commit comments