[CHORE]: x: T = None to x: Optional[T] = None (#24217)
This commit is contained in:
parent
106ab7f2a8
commit
5ab6bc283c
14 changed files with 29 additions and 25 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue