Blender Python and pass settings
The Python tooltips are currently a bit broken for property groups, which also affects the commands displayed in the Info area.

The correct command for setting this option for the current view layer is:

bpy.context.view_layer.cycles.denoising_store_passes = True


If you want to refer to the scene and view layer by name:

bpy.data.scenes['Scene'].view_layers['View Layer'].cycles.denoising_store_passes = True


Whenever you see a Python tooltip with an ellipsis (...) the command in the Info area is inaccurate.



The issue is known and reported in T69803.