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
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__)

View File

@ -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',

View File

@ -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:

View File

@ -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,

View File

@ -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