Cleanup: import operator class directly for Python operators

This commit is contained in:
2021-03-23 16:08:02 +11:00
parent 32301a0700
commit 3117de3a73
6 changed files with 25 additions and 16 deletions

View File

@@ -20,13 +20,14 @@
from __future__ import annotations
import bpy
from bpy.types import Operator
from bpy_extras.asset_utils import (
SpaceAssetInfo,
)
class ASSET_OT_tag_add(bpy.types.Operator):
class ASSET_OT_tag_add(Operator):
"""Add a new keyword tag to the active asset"""
bl_idname = "asset.tag_add"
@@ -44,7 +45,7 @@ class ASSET_OT_tag_add(bpy.types.Operator):
return {'FINISHED'}
class ASSET_OT_tag_remove(bpy.types.Operator):
class ASSET_OT_tag_remove(Operator):
"""Remove an existing keyword tag from the active asset"""
bl_idname = "asset.tag_remove"