改了下解释

This commit is contained in:
SnowindMe
2025-04-12 22:26:43 +08:00
parent c60a080337
commit 8ffe0fdf51

View File

@@ -12,7 +12,7 @@ class TimerTypeError(TypeError):
class Timer: class Timer:
"""支持多种模式的计时器(类型安全+人类可读)""" """支持上下文+装饰器的计时器"""
def __init__(self, name: Optional[str] = None, storage: Optional[Dict[str, float]] = None, auto_unit: bool = True): def __init__(self, name: Optional[str] = None, storage: Optional[Dict[str, float]] = None, auto_unit: bool = True):
self._validate_types(name, storage) self._validate_types(name, storage)