def pypy_partial(val):
    """
    Adjust for variable stacklevel on partial under PyPy.

    Workaround for #327.
    """
    is_pypy = platform.python_implementation() == 'PyPy'
    return val + is_pypy

    Adjust for variable stacklevel on partial under PyPy.

    Workaround for #327.
    
product/gradle-plugin/src/main/python/setuptools/_vendor/importlib_metadata/_compat.py