nutti / fake-bpy-module

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

enum set in regex is broken #211

Closed JonathanPlasse closed 1 month ago

JonathanPlasse commented 1 month ago

Expected behavior

All parameters with enum set in in their description should have the type set[str] | set[int] as shown in the following code. Screenshot from 2024-05-14 20-30-40

Description about the bug

bpy.ops.export_scene.fbx parameter object_types should have the type set[str] | set[int] but it has the type typing.Any | None. Screenshot from 2024-05-14 20-31-03 Screenshot from 2024-05-14 20-14-33

nutti commented 1 month ago

@JonathanPlasse

Thanks for launching this issue. You seems to have the solution about this issue.

You can make a PR instead of waiting our fixes (same for other issues). Also it is a good issue to understand the fake-bpy-module's generation code :)

JonathanPlasse commented 1 month ago

I take this on.

nutti commented 1 month ago

Good to hear that. Thanks!!

I'm now trying to fix another issue. If you want to tackle another issue in future, it is helpful to comment on the issue ;)