From 867960f4efd993104c5ebc36ee7def37d6025ef7 Mon Sep 17 00:00:00 2001 From: awsr <43862868+awsr@users.noreply.github.com> Date: Thu, 19 Mar 2026 01:50:36 -0700 Subject: [PATCH] Minor typing update --- modules/errorlimiter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/errorlimiter.py b/modules/errorlimiter.py index 8a8f82641..b63a40eee 100644 --- a/modules/errorlimiter.py +++ b/modules/errorlimiter.py @@ -1,6 +1,6 @@ from __future__ import annotations from contextlib import contextmanager -from typing import TYPE_CHECKING +from typing import TYPE_CHECKING, ClassVar from threading import Lock if TYPE_CHECKING: @@ -40,7 +40,7 @@ class ErrorLimiterAbort(RuntimeError): class ErrorLimiter: - _store: dict[str, int] = {} + _store: ClassVar[dict[str, int]] = {} @classmethod def start(cls, name: str, limit: int = 5):