Awkward ci errors with AttributeError: module 'pyarrow.lib' has no attribute 'PyExtensionType'. Did you mean: 'ExtensionType'? See https://github.com/scikit-hep/awkward/actions/runs/16376816863 for example.
PyExtensionType has been removed in pyarrow 21.0.0 and the docs recommend to use ExtensionType.
See for example the docs before removal in pyarrow 20: https://arrow.apache.org/docs/python/generated/pyarrow.PyExtensionType.html
We use it in this file: https://github.com/scikit-hep/awkward/blob/525acf3a3dff8b4b535026377ac435d75affd1fd/src/awkward/_connect/pyarrow/conversions.py