Refine type hint for cached hardware information

- Updated the type hint for the `_CACHED_HW_INFO` variable to use `Optional[str]` for improved clarity and to indicate that it can be `None`.

This change enhances type safety and readability in the hardware service module.
This commit is contained in:
Oleksandr Bezdieniezhnykh
2026-04-13 06:51:24 +03:00
parent 0c5686d149
commit 765d3d32c1
+2 -1
View File
@@ -1,11 +1,12 @@
import os import os
import platform import platform
import subprocess import subprocess
from typing import Optional
import psutil import psutil
cimport constants cimport constants
cdef str _CACHED_HW_INFO = None cdef Optional[str] _CACHED_HW_INFO = None
def _get_cpu(): def _get_cpu():