I'm getting an inspection error: "Cannot find reference 'setLineWidth' in 'canvas.py'"
However I can plainly see that this file is in External Libraries. Inspection doesn't complain about the import statements or the initialization of Canvas. I can also plainly see in the source that there truely is a setLineWidth method declared in Canvas.
from reportlab.lib.pagesizes import letter
from reportlab.pdfgen import canvas
canvas = canvas.Canvas("form.pdf", pagesize=letter)
This is a screen shot form the External Libraries tree:
Does anyone know how I can get inspection to see this source code?