[CHORE]: x: T = None to x: Optional[T] = None (#24217)

This commit is contained in:
willzhao 2025-08-21 21:58:39 +08:00 committed by GitHub
commit 5ab6bc283c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 29 additions and 25 deletions

View file

@ -1,10 +1,10 @@
import logging
from threading import Lock
from typing import Any
from typing import Any, Optional
logger = logging.getLogger(__name__)
_tokenizer: Any = None
_tokenizer: Optional[Any] = None
_lock = Lock()