Skip to content

Commit 7e5a764

Browse files
authored
Comply to PEP 0561 (#299)
* Add py.typed file * Improve command typing * Remove include
1 parent 924851c commit 7e5a764

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

pyoverkiz/models.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,12 @@ def __len__(self) -> int:
316316
class Command(dict):
317317
"""Represents an OverKiz Command."""
318318

319-
def __init__(self, name: str, parameters: list[str] | None = None, **_: Any):
319+
name: str
320+
parameters: list[str | int | float] | None
321+
322+
def __init__(
323+
self, name: str, parameters: list[str | int | float] | None = None, **_: Any
324+
):
320325
self.name = name
321326
self.parameters = parameters
322327
dict.__init__(self, name=name, parameters=parameters)

pyoverkiz/py.typed

Whitespace-only changes.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ packages = [
1111
{ include = "pyoverkiz" }
1212
]
1313

14+
1415
[tool.poetry.dependencies]
1516
python = ">=3.7,<4.0"
1617
aiohttp = "^3.6.1"

0 commit comments

Comments
 (0)