Skip to content

Commit 2e53ea5

Browse files
committed
Update Command class to accept OverkizCommand or str for name parameter and enhance example script with type hints
1 parent 70be5cd commit 2e53ea5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

pyoverkiz/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ class Command:
472472
"""Represents an OverKiz Command."""
473473

474474
type: int | None = None
475-
name: OverkizCommand
475+
name: str | OverkizCommand
476476
parameters: list[str | int | float | OverkizCommandParam] | None
477477

478478
def __init__(

test_queue_example.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#!/usr/bin/env python3
2+
# mypy: ignore-errors
3+
# ty: ignore
4+
25
"""Simple example demonstrating the action queue feature."""
36

7+
from __future__ import annotations
8+
49
import asyncio
510

611
from pyoverkiz.client import OverkizClient

0 commit comments

Comments
 (0)