Distrotech / reportlab

Mirror of https://bitbucket.org/rptlab/reportlab
Other
61 stars 41 forks source link

Unexpected behaviour: error after renderPDF.draw() call #22

Open natajacks opened 2 years ago

natajacks commented 2 years ago

Hi, please see full description of unexpected behaviour and possible bug location identified by Microsoft here:

https://github.com/microsoft/pylance-release/issues/3270

Thank you!

bschnurr commented 2 years ago

meant to say pylance/pyright is expecting NotImplementedError

https://github.com/microsoft/pyright/blob/main/docs/type-inference.md#noreturn-return-type

bschnurr commented 2 years ago

alternatively you could annotate the return type to prevent inferencing. ie. -> None on def applyStateChanges

timobrembeck commented 1 year ago

@natajacks @bschnurr This repository is only a mirror and not maintained by the reportlab team. Please describe your issue here if your problem still persists: https://groups.google.com/g/reportlab-users