mirror of https://github.com/Mai-with-u/MaiBot.git
改了下解释
parent
c60a080337
commit
8ffe0fdf51
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue