The synchronous equivalent from the standard library accepts a few keyword arguments to control the name and location of the created directory. However, aiofiles.tempfile.TemporaryDirectory does not accept the same keyword arguments.
...
async with aiofiles.tempfile.TemporaryDirectory(dir=working_dir) as temp_dir_str:
TypeError: TemporaryDirectory() got an unexpected keyword argument 'dir'
The synchronous equivalent from the standard library accepts a few keyword arguments to control the name and location of the created directory. However,
aiofiles.tempfile.TemporaryDirectory
does not accept the same keyword arguments.Tested using aiofiles version 0.7.0.