Skip to content

Commit daf2ab9

Browse files
committed
Improve typing
1 parent bbe03f3 commit daf2ab9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pyoverkiz/models.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
UIWidget,
2121
UpdateBoxStatus,
2222
)
23+
from pyoverkiz.enums.command import OverkizCommand, OverkizCommandParam
2324
from pyoverkiz.enums.protocol import Protocol
2425
from pyoverkiz.obfuscate import obfuscate_email, obfuscate_id, obfuscate_string
2526
from pyoverkiz.types import DATA_TYPE_TO_PYTHON, StateType
@@ -423,12 +424,12 @@ class Command:
423424
"""Represents an OverKiz Command."""
424425

425426
type: int | None = None
426-
name: str
427-
parameters: list[str | int | float] | None
427+
name: OverkizCommand
428+
parameters: list[str | int | float | OverkizCommandParam] | None
428429

429430
def __init__(
430431
self,
431-
name: str,
432+
name: OverkizCommand,
432433
parameters: list[str | int | float] | None = None,
433434
type: int | None = None,
434435
**_: Any,

0 commit comments

Comments
 (0)