nutti / fake-bpy-module

Fake Blender Python API module collection for the code completion.
MIT License
1.4k stars 98 forks source link

Pylance Linter is unable to detect member #83

Closed Kein closed 3 years ago

Kein commented 3 years ago

System Information

I'm not sure if this is fake-bpy or pylance issue so I will try here for now. The issue demonstrated: image

nutti commented 3 years ago

@Kein

I think bpy_prop_collection should have this kind of API. Is there any other missing APIs about bpy_prop_collection? I will add them when I add new method to bpy_prop_collection.

Kein commented 3 years ago

Looks like it is here but may be defined in a way that annoys pylance server? image image

Sorry, I've only meet python and its dev environment a few days ago, dont have overall knowledge to identify issue.

nutti commented 3 years ago

@Kein

Ah, I could understand. Yes, you are right. BlendDataCollections has a new method.

Then, I checked this in my VSCode environment, and there is no error. So, I think this is a specific case for pylance.

Unfortunately, I don't have enough knowledge about pylance. So, you should redirect this to the pylance community or other python community.

Kein commented 3 years ago

Fair enough. Thought it would be real nice.

nutti commented 3 years ago

I'll close this issue for now. If another problem is raised, please feel free to open.