graphql/type/validate.py
def assert_valid_schema(schema: GraphQLSchema):
    """Utility function which asserts a schema is valid.

    Throws a TypeError if the schema is invalid.
    """
    errors = validate_schema(schema)
    if errors:
        raise TypeError("\n\n".join(error.message for error in errors))
Utility function which asserts a schema is valid.

    Throws a TypeError if the schema is invalid.
    
Utility function which asserts a schema is valid.
Throws a TypeError if the schema is invalid.
Utility function which asserts a schema is valid . Throws a TypeError if the schema is invalid .
def assert_valid_schema(schema: GraphQLSchema):
    errors = validate_schema(schema)
    if errors:
        raise TypeError("\n\n".join(error.message for error in errors))
def assert_valid_schema ( schema : GraphQLSchema ) : errors = validate_schema ( schema ) if errors : raise TypeError ( "\n\n" . join ( error . message for error in errors ) )
Utility function which asserts a schema is valid.
Utility function which asserts a schema is valid .
"""Utility function which asserts a schema is valid.

    Throws a TypeError if the schema is invalid.
    """
schema
GraphQLSchema