I need advice from who knows Blender and Eric7 (Python IDE).
So … Right now I developing my add-on for Blender in Python, and I’m using Eric7 (Python IDE) for comfort working with many python files, but I have a small problem with python checking system in Eric7.
In Blender my addon working good (without any warnings), but Eric7 tells me that the “String” inside function’s parameters is “Undefined name”, and also this function is inside the class, here is screenshot:
So … can anyone tell me, it’s wrong to write like this in Python or not? (At least in Blender it’s works fine), but I just wanna know, if it’s wrong - so how can I write it correctly?.
Most likely, Eric7 can’t “understand” the parameters for annotations from Blender properties…
It’s not a problem, neither an error. (the warning is just a bit annoying).
As Python is a very ‘allowable’ language, it’s sometimes difficult for a syntax checker to correctly interpret a line of code.
If the warning disturbs you, you can disable syntax checking / pyflakes, or change the styles of the warnings to something less flashing. (I’d just ignore them).
You could also try to use VSCode (which has a better support for Blender addons).