pre_commit/util.py
def tmpdir() -> Generator[str, None, None]:
    """Contextmanager to create a temporary directory.  It will be cleaned up
    afterwards.
    """
    tempdir = tempfile.mkdtemp()
    try:
        yield tempdir
    finally:
        rmtree(tempdir)
Contextmanager to create a temporary directory.  It will be cleaned up
    afterwards.
    
Contextmanager to create a temporary directory.  It will be cleaned up
afterwards.
Contextmanager to create a temporary directory . It will be cleaned up afterwards .
def tmpdir() -> Generator[str, None, None]:
    tempdir = tempfile.mkdtemp()
    try:
        yield tempdir
    finally:
        rmtree(tempdir)
def tmpdir ( ) -> Generator [ str , None , None ] : tempdir = tempfile . mkdtemp ( ) try : yield tempdir finally : rmtree ( tempdir )
Contextmanager to create a temporary directory.
Contextmanager to create a temporary directory .
"""Contextmanager to create a temporary directory.  It will be cleaned up
    afterwards.
    """