aiomisc icon indicating copy to clipboard operation
aiomisc copied to clipboard

replace async-timeout with asyncio.timeout

Open dotlambda opened this issue 3 months ago • 3 comments

dotlambda avatar Sep 15 '25 01:09 dotlambda

Hi @dotlambda, could you please explain what exactly problem you're solving with this PR? I don't understand why we should drop support for Python 3.10, whose EoL is in a year. If you don't mind, perhaps we could wait with merging until then.

mosquito avatar Sep 16 '25 06:09 mosquito

I'm just trying to follow upstream's recommendation.

We could also use

if sys.version_info >= (3, 11):
    from asyncio import timeout
else:
    from async_timeout import timeout

dotlambda avatar Sep 16 '25 07:09 dotlambda

It was a dev dependency, needed only for tests.

mosquito avatar Sep 16 '25 08:09 mosquito