mirror of
https://github.com/azaion/loader.git
synced 2026-04-22 22:46:32 +00:00
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:
@@ -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():
|
||||||
|
|||||||
Reference in New Issue
Block a user