py39: fix mypyc complaint (#9552)
I was trying to build wheels for Python 3.9 as part of #9536, but ran
into this issue. You'll notice a couple hundred lines up msullivan
points out that mypyc can't handle conditional method definition, so
that's not an option here.
Co-authored-by: hauntsaninja <>