mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-10-12 02:18:02 +00:00
Remove support for python <3.11 (#1273)
Python 3.11 ships with latest Debian Bookworm. pypy is not that widely used with this library based on statistics. It could be added back when pypy supports python 3.11.
This commit is contained in:
@@ -5,7 +5,7 @@ from __future__ import annotations
|
||||
import logging
|
||||
import re
|
||||
from enum import Enum
|
||||
from typing import Optional, cast
|
||||
from typing import cast
|
||||
|
||||
from pydantic.v1 import BaseModel, Field, root_validator
|
||||
|
||||
@@ -49,7 +49,7 @@ class TurnOnBehavior(BaseModel):
|
||||
"""
|
||||
|
||||
#: Index of preset to use, or ``None`` for the last known state.
|
||||
preset: Optional[int] = Field(alias="index", default=None) # noqa: UP007
|
||||
preset: int | None = Field(alias="index", default=None)
|
||||
#: Wanted behavior
|
||||
mode: BehaviorMode
|
||||
|
||||
|
Reference in New Issue
Block a user