RUF013 update

pull/4706/head
awsr 2026-03-24 03:40:15 -07:00
parent b75a1f971f
commit 481d974b91
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ def get_optimal_device():
return torch.device(get_optimal_device_name())
def torch_gc(force:bool=False, fast:bool=False, reason:str=None):
def torch_gc(force: bool = False, fast: bool = False, reason: str | None = None):
def get_stats():
mem_dict = memstats.memory_stats()
gpu_dict = mem_dict.get('gpu', {})