[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
parent 106ab7f2a8
commit 5ab6bc283c
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()