I'm working on adaptation some addon from 2.79 to 2.8x. It uses property groups to fill other objects with recurring attributes.
TestProps:
my_float_prop: bpy.props.FloatProperty(default=3.1415926)
MyCustomNode:
my_float_prop: TestProps.my_float_prop
With 2.79 using =
assignment addon works fine.
But 2.8x with pep-0526 I'm getting
AttributeError: type object 'TestProps' has no attribute 'my_float_prop'
I had created github repo demonstrates my problem with same project structure.
TestProp.__annotations__["my_float_prop"]
Consider too usingmath.pi
. $\endgroup$