Skip to content

Commit

Permalink
Suppress 'not-callable'
Browse files Browse the repository at this point in the history
  • Loading branch information
saturday06 committed Aug 9, 2021
1 parent 445f1ea commit ee35f7e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions io_scene_vrm/preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,13 @@ def set_use_experimental_vrm_component_ui(self, value: bool) -> None:
return
self[key] = value
callback = self.set_use_experimental_vrm_component_ui_callback
if callback is None:
if callable(callback):
# pylint: disable=not-callable;
callback(value)
else:
print(
"WARNING: VrmAddonPreferences.set_use_experimental_vrm_component_ui_callback is None"
"WARNING: VrmAddonPreferences.set_use_experimental_vrm_component_ui_callback is not a callable"
)
else:
callback(value)

export_invisibles: bpy.props.BoolProperty( # type: ignore[valid-type]
name="Export invisible objects", # noqa: F722
Expand Down

0 comments on commit ee35f7e

Please sign in to comment.