Working under 5.24, seems to be related to the changes introduced by https://github.com/ethereum/web3.py/pull/2205 in 5.25.