@@ -279,7 +279,6 @@ def extend_schema_args(
279279 assume_valid = assume_valid ,
280280 )
281281
282- # noinspection PyTypeChecker,PyUnresolvedReferences
283282 def replace_type (self , type_ : GraphQLType ) -> GraphQLType :
284283 """Replace a GraphQL type."""
285284 if is_list_type (type_ ):
@@ -295,7 +294,6 @@ def replace_named_type(self, type_: GraphQLNamedType) -> GraphQLNamedType:
295294 # validation with validate_schema() will produce more actionable results.
296295 return self .type_map [type_ .name ]
297296
298- # noinspection PyShadowingNames
299297 def replace_directive (self , directive : GraphQLDirective ) -> GraphQLDirective :
300298 """Replace a GraphQL directive."""
301299 if is_specified_directive (directive ):
@@ -351,7 +349,6 @@ def extend_input_object_type_fields(
351349 ** self .build_input_field_map (extensions ),
352350 }
353351
354- # noinspection PyShadowingNames
355352 def extend_input_object_type (
356353 self ,
357354 type_ : GraphQLInputObjectType ,
@@ -421,7 +418,6 @@ def extend_object_type_fields(
421418 ** self .build_field_map (extensions ),
422419 }
423420
424- # noinspection PyShadowingNames
425421 def extend_object_type (self , type_ : GraphQLObjectType ) -> GraphQLObjectType :
426422 """Extend a GraphQL object type."""
427423 kwargs = type_ .to_kwargs ()
@@ -459,7 +455,6 @@ def extend_interface_type_fields(
459455 ** self .build_field_map (extensions ),
460456 }
461457
462- # noinspection PyShadowingNames
463458 def extend_interface_type (
464459 self , type_ : GraphQLInterfaceType
465460 ) -> GraphQLInterfaceType :
@@ -500,7 +495,6 @@ def extend_union_type(self, type_: GraphQLUnionType) -> GraphQLUnionType:
500495 ),
501496 )
502497
503- # noinspection PyShadowingNames
504498 def extend_field (self , field : GraphQLField ) -> GraphQLField :
505499 """Extend a GraphQL field."""
506500 return GraphQLField (
@@ -520,7 +514,6 @@ def extend_arg(self, arg: GraphQLArgument) -> GraphQLArgument:
520514 )
521515 )
522516
523- # noinspection PyShadowingNames
524517 def get_operation_types (
525518 self , nodes : Collection [SchemaDefinitionNode | SchemaExtensionNode ]
526519 ) -> dict [OperationType , GraphQLNamedType ]:
@@ -534,7 +527,6 @@ def get_operation_types(
534527 for operation_type in node .operation_types or []
535528 }
536529
537- # noinspection PyShadowingNames
538530 def get_named_type (self , node : NamedTypeNode ) -> GraphQLNamedType :
539531 """Get name GraphQL type for a given named type node."""
540532 name = node .name .value
0 commit comments