Sphinx warning in extension

This is TRAC-2998.