Looks like 0.5.7 has broken things
primal100 opened this issue · 5 comments
primal100 commented
Tested with python 3.8 and Python3.9. Works ok on aiopath 0.5.6
async for path in AsyncPath('.').glob():
print(path)
TypeError: func_to_async_func() takes 1 positional argument but 2 were given
await f.read_text()
async with self.open('r', encoding=encoding, errors=errors) as file:
AttributeError: __aexit__
bronsen commented
Can confirm.
Also this (from my CI):
> async with self.open('r', encoding=encoding, errors=errors) as file:
E AttributeError: __aenter__
Downgrading aiopath to 0.5.6 shows no such errors.
alexdelorenzo commented
Thanks for submitting bug reports, @primal100, @bronsen and @lopisan. Sorry for breaking aiopath
on you!
I've added new tests here so that this doesn't happen again.
Version 0.5.11 on PyPI will fix your issues. You can install it like so:
python3 -m pip install aiopath==0.5.11
bronsen commented
Indeed aiopath 0.5.11 no longer raises the AttributeError during CI run.
alexdelorenzo commented
Glad to hear it, @bronsen.
I'm going to close this issue, feel free to comment again if anyone is still affected by this issue.