[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,5 +1,6 @@
import os
from collections import UserDict
from typing import Optional
from unittest.mock import MagicMock
import pytest
@ -21,7 +22,7 @@ class MockBaiduVectorDBClass:
def mock_vector_db_client(
self,
config=None,
adapter: HTTPAdapter = None,
adapter: Optional[HTTPAdapter] = None,
):
self.conn = MagicMock()
self._config = MagicMock()