This fixes an error ("Cannot determine consistent method resolution order (MRO)") when running mypy with a cache.