I have a portion of a script that changes the symbology of everything that isn't a point into uniquevalues using uniquevaluesrenderer. The part I'm having a hard time with is changing the line width to 2.
#isolate the symbology of the selected layer
sym = lyr.symbology #set the symbology as unique values
sym.updateRenderer('UniqueValueRenderer')
#specify the desired fields for the symbolizing
sym.renderer.fields = ['insert_attribute']
#select a colour ramp
colorRamp = p.listColorRamps("Voxel Tracks")[0]
#set the colour ramp
sym.renderer.colorRamp = colorRamp
#update the layer symbology
lyr.symbology = sym
symbol = lyr.symbology