def namespace_annotations_corrector(bases, namespace, parameters):
    """
    Replace type-variables inside namespace.
    This mutates, which is annoying, but copying everything would be slow.
    """
    # Replace type-variables
    for name, value in utility.attributes_with_annotations(namespace):
        corrected = _annotations_corrector(value, bases, parameters)
        value.__annotations__ = corrected
    return namespace