Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TemporaryDirectory is missing keyword arguments from upstream #112

Closed
wlritchi opened this issue Oct 2, 2021 · 1 comment · Fixed by #116
Closed

TemporaryDirectory is missing keyword arguments from upstream #112

wlritchi opened this issue Oct 2, 2021 · 1 comment · Fixed by #116

Comments

@wlritchi
Copy link

wlritchi commented Oct 2, 2021

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'

Tested using aiofiles version 0.7.0.

@gaby
Copy link

gaby commented Oct 7, 2021

I also ran into the same issue expecting a similar interface.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants