Skip to content

Commit a5bfb4b

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

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
@@ -471,7 +471,7 @@ class Command:
471471
"""Represents an OverKiz Command."""
472472

473473
type: int | None = None
474-
name: OverkizCommand
474+
name: str | OverkizCommand
475475
parameters: list[str | int | float | OverkizCommandParam] | None
476476

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