From 42bde081c4b0992c7b6022c5094552708fc2c661 Mon Sep 17 00:00:00 2001 From: Brett Rowan <121075405+b-rowan@users.noreply.github.com> Date: Fri, 22 Nov 2024 10:44:09 -0700 Subject: [PATCH] bug: fix some issues with type hints causing warnings --- pyasic/data/boards.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyasic/data/boards.py b/pyasic/data/boards.py index 57f7c6e7..e619c5b1 100644 --- a/pyasic/data/boards.py +++ b/pyasic/data/boards.py @@ -13,6 +13,7 @@ # See the License for the specific language governing permissions and - # limitations under the License. - # ------------------------------------------------------------------------------ +from __future__ import annotations from typing import Any @@ -40,8 +41,8 @@ class HashBoard(BaseModel): slot: int = 0 hashrate: AlgoHashRateType | None = None - temp: int | None = None - chip_temp: int | None = None + temp: float | None = None + chip_temp: float | None = None chips: int | None = None expected_chips: int | None = None serial_number: str | None = None