Skip to content

Commit 3f4606e

Browse files
fix: change return type of get_cpu_name to str instead of optional
1 parent 1bec244 commit 3f4606e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

focoos/utils/system.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def get_gpu_info() -> GPUInfo:
136136
return gpu_info
137137

138138

139-
def get_cpu_name() -> Optional[str]:
139+
def get_cpu_name() -> str:
140140
"""
141141
Retrieve the name of the CPU.
142142

0 commit comments

Comments
 (0)