Quantization and holomorphic anomaly