@@ -57,7 +57,6 @@ def validate_schema(schema: GraphQLSchema) -> List[GraphQLError]:
5757 # noinspection PyProtectedMember
5858 errors = schema ._validation_errors
5959 if errors is None :
60-
6160 # Validate the schema, producing a list of errors.
6261 context = SchemaValidationContext (schema )
6362 context .validate_root_types ()
@@ -196,7 +195,6 @@ def validate_name(self, node: Any, name: Optional[str] = None) -> None:
196195 def validate_types (self ) -> None :
197196 validate_input_object_circular_refs = InputObjectCircularRefsValidator (self )
198197 for type_ in self .schema .type_map .values ():
199-
200198 # Ensure all provided types are in fact GraphQL type.
201199 if not is_named_type (type_ ):
202200 self .report_error (
@@ -247,7 +245,6 @@ def validate_fields(
247245 )
248246
249247 for field_name , field in fields .items ():
250-
251248 # Ensure they are named correctly.
252249 self .validate_name (field , field_name )
253250
@@ -463,7 +460,6 @@ def validate_input_fields(self, input_obj: GraphQLInputObjectType) -> None:
463460
464461 # Ensure the arguments are valid
465462 for field_name , field in fields .items ():
466-
467463 # Ensure they are named correctly.
468464 self .validate_name (field , field_name )
469465
0 commit comments