Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyoverkiz/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import urllib.parse
from pathlib import Path
from types import TracebackType
from typing import Any, cast
from typing import Any, Self, cast

import backoff
from aiohttp import (
Expand Down Expand Up @@ -216,7 +216,7 @@ def __init__(
ssl_context=self._ssl,
)

async def __aenter__(self) -> OverkizClient:
async def __aenter__(self) -> Self:
"""Enter async context manager and return the client instance."""
return self

Expand Down
8 changes: 4 additions & 4 deletions pyoverkiz/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1265,16 +1265,16 @@ class ValuePrototype:
"""Value prototype defining parameter/state value constraints."""

type: str
min_value: int | float | None = None
max_value: int | float | None = None
min_value: float | None = None
max_value: float | None = None
enum_values: list[str] | None = None
description: str | None = None

def __init__(
self,
type: str,
min_value: int | float | None = None,
max_value: int | float | None = None,
min_value: float | None = None,
max_value: float | None = None,
Comment thread
iMicknl marked this conversation as resolved.
enum_values: list[str] | None = None,
description: str | None = None,
**_: Any,
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ select = [
"PIE",
# eradicate
"ERA",
# flake8-pyi
"PYI",
]
ignore = [
"E501", # Line too long
Expand Down
Loading