bug: fix some issues with type hints causing warnings

This commit is contained in:
Brett Rowan
2024-11-22 10:44:09 -07:00
parent bfb72aec1b
commit 42bde081c4

View File

@@ -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