I get this error when I run my script:
Traceback (most recent call last):
File "", line 1, in AttributeError: 'Symbology' object has no attribute 'renderer'
Script:
p = arcpy.mp.ArcGISProject("CURRENT")
m = p.listMaps('Map')[0]
l = m.listLayers('Raster1')[0]
sym = l.symbology
sym.renderer
https://pro.arcgis.com/en/pro-app/arcpy/mapping/symbology-class.htm
According to this URL's page there shouldn't be any error.