I'm wanting to change the shader type of the viewport, up the top left of blender 2.8 it has the icons: Wireframe/Solid/LookDev/Rendered
I want to set this in python, when I mouse over it shows: bpy.data.screens["Modeling"].shader.type
So I tried
bpy.data.screens["Modeling"].shader.type = 'MATERIAL'
but this didn't work, I also tried:
shading = context.space_data.shading
shading.type = 'MATERIAL'
but neither worked, bot said that type 'SpaceProperties has no attribute Shading'