SofaPython3 icon indicating copy to clipboard operation
SofaPython3 copied to clipboard

Example on how fix type forward declaration in the binding

Open damienmarchal opened this issue 1 year ago • 1 comments

The problem: Depending on the definition order of the binded classes, binding "Base", and BaseData registered after then the use of BaseData in the function signature in Base will have invalid string name. This prevent stubgen to make their work.

In the PR I propose a way to fix that.

damienmarchal avatar Sep 23 '24 13:09 damienmarchal

Rebased and passing tests.

damienmarchal avatar Oct 17 '24 11:10 damienmarchal

PR looks clean :+1: but I would need some insight (the link with #456)

hugtalbot avatar Nov 06 '24 09:11 hugtalbot

In #456 was a preliminary version of the current one on BaseData. The current PR covers the whole plugin. So to me it is to merge if CI pass.

damienmarchal avatar Nov 08 '24 15:11 damienmarchal

@damienmarchal Could you please fix conflict on this branch so we can merge it ?

bakpaul avatar Jan 08 '25 09:01 bakpaul