fix: Fix tests.

uv-refactor
Sofus Albert Høgsbro Rose 2024-10-02 12:58:47 +02:00
parent 383f7d9bfd
commit 06ad0d62a5
Signed by: so-rose
GPG Key ID: AD901CB0F3701434
5 changed files with 7 additions and 6 deletions

View File

@ -20,8 +20,9 @@ import enum
from pathlib import Path from pathlib import Path
import bpy 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__) log = logger.get(__name__)

View File

@ -66,7 +66,7 @@ class BLHandlers(pyd.BaseModel):
# - Properties # - Properties
#################### ####################
@staticproperty # type: ignore[arg-type] @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.""" """Returns an immutable string sequence of handler categories."""
return ( return (
'animation_playback_post', 'animation_playback_post',

View File

@ -38,7 +38,7 @@ class BLKeymapItem(pyd.BaseModel):
space_type: BLSpaceType = 'EMPTY' 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. """Registers this hotkey with an addon keymap.
Raises: Raises:

View File

@ -120,7 +120,7 @@ BL_HANDLERS: ct.BLHandlers = ct.BLHandlers()
BL_KEYMAP_ITEMS: list[ct.BLKeymapItem] = [ BL_KEYMAP_ITEMS: list[ct.BLKeymapItem] = [
ct.BLKeymapItem( ct.BLKeymapItem(
ct.OperatorType.ConnectViewerNode, operator=ct.OperatorType.ConnectViewerNode,
event_type='LEFTMOUSE', event_type='LEFTMOUSE',
event_value='PRESS', event_value='PRESS',
ctrl=True, ctrl=True,

View File

@ -39,7 +39,7 @@ log = logger.get(__name__)
_REGISTERED_CLASSES: list[ct.BLClass] = [] _REGISTERED_CLASSES: list[ct.BLClass] = []
_REGISTERED_KEYMAPS: dict[ct.BLSpaceType, bpy.types.KeyMap] = {} _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 _REGISTERED_HANDLERS: ct.BLHandlers | None = None