Issue description
The vendored version of importlib_resources uses the typing.io namespace, which is deprecated since Python 3.8 and will be removed in Python 3.12 (cf. python/cpython#92871). This was seemingly fixed in importlib_resources v5.2.1 (according to the changelog).