(bzlmod) Fixed a type mismatch error when using {obj}coverage_tool with {obj}python.single_version_platform_override (#2570).