DiamondLightSource / DiamondLightSource/dodal
Remove asyncio wrapped TimeoutError after support for Python 3.10 dropped
Open
enhancement
low priority
python
- Dominant language
- Python
- Stars
- 5
- Forks
- 13
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 10
Description
asyncio.TimeoutError was removed from Python 3.11, deferring to the builtin TimeoutError. asyncio still exposes the builtin, but after we no longer support Python 3.10 we will not require to and intent is clearer just using the builtin.
## Acceptance Criteria
* Wherever `TimeoutError` is imported from `asyncio` is removed, and the builtin `TimeoutError` is used
* Wherever `asyncio.TimeoutError` is used, it is replaced with the builtin `TimeoutError`
Contributor guide
Assessment
This issue has not been assessed yet.