Closed atticus-lv closed 1 day ago
What module is this?
This is not a module but a custom tool class.
The problem is when using bpy.types.XXXX
to type hint a parm type/return type, it always shows Any
Was able to reproduce this.
If you open bpy.types you'll see a warning that PyCharm skips the file because of it's size:
You can increase maximum file size in the pycharm settings and restart pycharm, then it will load symbols from bpy.types too and it will work fine. https://stackoverflow.com/questions/37695939/maximum-file-size-in-pycharm
@atticus-lv
You can also see the same information at the first Note on https://github.com/nutti/fake-bpy-module/blob/master/docs/setup_pycharm.md to solve this issue.
thanks, I will check it out. Before I had set intellisense.filesize
to 2600 just as the readme said. Maybe I should make it larger just like 30000
nice, set it to 5000 and it works
however the bpy.utils still highlight, old version like 4.0 will not have this issue(set it to 30000 is not work, but when using from bpy.utils import ...
)
I'm not sure whether this issue is PyCharm specific or not. From my VSCode environment, I could not find this issue.
however the bpy.utils still highlight, old version like 4.0 will not have this issue(set it to 30000 is not work, but when using
from bpy.utils import ...
)
Sorry, I don't understand what's the issue, can you explain it more?
@atticus-lv Any update?
Close this issue due to no response.
System Information
Description about the bug
seems that type hint is not right![image](https://github.com/nutti/fake-bpy-module/assets/64118610/dc63b8e2-5621-4f55-979e-526df957f145)