def is_required_version(version, specified_version):
    "Check to see if there's a hard requirement for version\n    number provided in the Pipfile.\n    "
    if isinstance(specified_version, dict):
        specified_version = specified_version.get('version', '')
    if specified_version.startswith('=='):
        return (version.strip() == specified_version.split('==')[1].strip())
    return True
Check to see if there's a hard requirement for version
number provided in the Pipfile.
def is_required_version(version, specified_version):
    "Check to see if there's a hard requirement for version\n    number provided in the Pipfile.\n    "
    if isinstance(specified_version, dict):
        specified_version = specified_version.get('version', )
    if specified_version.startswith('=='):
        return (version.strip() == specified_version.split('==')[1].strip())
    return True