mirror of
https://github.com/azaion/loader.git
synced 2026-04-22 10:26:33 +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 platform
|
||||
import subprocess
|
||||
from typing import Optional
|
||||
|
||||
import psutil
|
||||
cimport constants
|
||||
|
||||
cdef str _CACHED_HW_INFO = None
|
||||
cdef Optional[str] _CACHED_HW_INFO = None
|
||||
|
||||
|
||||
def _get_cpu():
|
||||
|
||||
Reference in New Issue
Block a user