fix: Fix tests.
parent
383f7d9bfd
commit
06ad0d62a5
|
@ -20,8 +20,9 @@ import enum
|
|||
from pathlib import Path
|
||||
|
||||
import bpy
|
||||
from blender_maxwell import contracts as ct
|
||||
from blender_maxwell.utils import logger
|
||||
|
||||
from oscillode import contracts as ct
|
||||
from oscillode.utils import logger
|
||||
|
||||
log = logger.get(__name__)
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@ class BLHandlers(pyd.BaseModel):
|
|||
# - Properties
|
||||
####################
|
||||
@staticproperty # type: ignore[arg-type]
|
||||
def hander_categories() -> tuple[str, ...]: # type: ignore[misc]
|
||||
def handler_categories() -> tuple[str, ...]: # type: ignore[misc]
|
||||
"""Returns an immutable string sequence of handler categories."""
|
||||
return (
|
||||
'animation_playback_post',
|
||||
|
|
|
@ -38,7 +38,7 @@ class BLKeymapItem(pyd.BaseModel):
|
|||
|
||||
space_type: BLSpaceType = 'EMPTY'
|
||||
|
||||
def register(self, addon_keymap: bpy.types.KeyMap) -> bpy.types.KeymapItem:
|
||||
def register(self, addon_keymap: bpy.types.KeyMap) -> bpy.types.KeyMapItem:
|
||||
"""Registers this hotkey with an addon keymap.
|
||||
|
||||
Raises:
|
||||
|
|
|
@ -120,7 +120,7 @@ BL_HANDLERS: ct.BLHandlers = ct.BLHandlers()
|
|||
|
||||
BL_KEYMAP_ITEMS: list[ct.BLKeymapItem] = [
|
||||
ct.BLKeymapItem(
|
||||
ct.OperatorType.ConnectViewerNode,
|
||||
operator=ct.OperatorType.ConnectViewerNode,
|
||||
event_type='LEFTMOUSE',
|
||||
event_value='PRESS',
|
||||
ctrl=True,
|
||||
|
|
|
@ -39,7 +39,7 @@ log = logger.get(__name__)
|
|||
_REGISTERED_CLASSES: list[ct.BLClass] = []
|
||||
|
||||
_REGISTERED_KEYMAPS: dict[ct.BLSpaceType, bpy.types.KeyMap] = {}
|
||||
_REGISTERED_KEYMAP_ITEMS: list[tuple[bpy.types.KeyMap, bpy.types.KeymapItem]] = []
|
||||
_REGISTERED_KEYMAP_ITEMS: list[tuple[bpy.types.KeyMap, bpy.types.KeyMapItem]] = []
|
||||
|
||||
_REGISTERED_HANDLERS: ct.BLHandlers | None = None
|
||||
|
||||
|
|
Loading…
Reference in New Issue