Implement the `wrap` function with the `asyncio.to_thread` underneath.
Features:
- base::
wrap-> base::asyncio.to_thread - update Justfile
- update pytest configuration in the pyproject.toml file
- add mypy for
just check
Closes #207 . Makes the #177 obsolete (actually done by the #209).
@Tinche , hello.
Converted to draft so the PR #216 can be resolved first.
@Tinche , hello.
Could you possibly have a look at this PR?
I don't see a ton of value in the wrap -> to_coro refactor so I'm going to pass on it, sorry.
I don't see a ton of value in the
wrap->to_cororefactor so I'm going to pass on it, sorry.
No problem, but please have another look at this PR:
- the wrap function is back, but with asyncio.to_thread
- Justfile updated
- the code is groomed a little bit
- .python-version...it didn't make because uv sticks to the Python version from the ".python-version" file -> https://github.com/Tinche/aiofiles/actions/runs/16857818297/job/47753607482#step:5:42
I hope these changes are enough and still add real value to the project.
@Tinche , hello.
This PR is ready for another review:
- RUF specific-rules added -> RUF022 sorted the
__all__variable in some modules; - mypy is used in the
just checkrule -> good to go before #222 ; - no changes in CI/CD - not for this PR (opinion)
@Tinche , good day.
I have updated the CHANGELOG and README files, the tox -e (py39|py314|check) commands are OK locally, so this PR is finalised enough. If you are OK with the changes as they are, let 'em be merged, please.
@Tinche , hello.
Are you ready to merge this PR so the next #222 and #193 could be rebased and proceeded?