def METHOD_NAME(self, name):
    # type: (str) -> bool
    project_name = canonicalize_name(name)
    return (
        project_name in self.requirements and
        not self.requirements[project_name].constraint
    )