nutti / fake-bpy-module

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

Avoid "Call expression not allowed in type expression" in property declarations #164

Closed UuuNyaa closed 7 months ago

UuuNyaa commented 7 months ago

This issue will be impossible to solve because this code style is a proprietary type semantics extension of Blender.

Description about the feature

Lint succeeds with the following code:

class TestGroupProperty(bpy.types.PropertyGroup):
    test_float_property: bpy.props.FloatProperty(name="test float property", default=0.0)

Actual

image

Expected

No errors.

Are you willing to contribute about this feature. (Yes/No)

Neither

nutti commented 7 months ago

@UuuNyaa

This comes from the side effect of #86. But your proposal seems to be reasonable. I reverted the changes made from #86.