python-sphinx fails check with python 3.11.7+

Additional info:

Steps to reproduce:

$ pkgctl repo clone --protocol=https python-sphinx
$ cd python-sphinx/
$ pkgctl build