Pie Menu Editor 1.18.7

Is something changes in Blender 3.1?
I was used return C.area.type == ‘GRAPH_EDITOR’ for some pie work only in graph editor, but in 3.1 its doesnt work and still open wrong pie menu.