chore: cleanup unnecessary mypy suppressions on imports (#24712)

This commit is contained in:
Bowen Liang 2025-08-28 23:17:25 +08:00 committed by GitHub
commit 39064197da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 37 additions and 37 deletions

View file

@ -1,6 +1,6 @@
import time
import psycopg2 # type: ignore
import psycopg2
from core.rag.datasource.vdb.opengauss.opengauss import OpenGauss, OpenGaussConfig
from tests.integration_tests.vdb.test_vector_store import (

View file

@ -4,8 +4,8 @@ from unittest.mock import MagicMock
import pytest
from _pytest.monkeypatch import MonkeyPatch
from oss2 import Bucket # type: ignore
from oss2.models import GetObjectResult, PutObjectResult # type: ignore
from oss2 import Bucket
from oss2.models import GetObjectResult, PutObjectResult
from tests.unit_tests.oss.__mock.base import (
get_example_bucket,

View file

@ -1,7 +1,7 @@
from unittest.mock import patch
import pytest
from oss2 import Auth # type: ignore
from oss2 import Auth
from extensions.storage.aliyun_oss_storage import AliyunOssStorage
from tests.unit_tests.oss.__mock.aliyun_oss import setup_aliyun_oss_mock

View file

@ -1,7 +1,7 @@
from textwrap import dedent
import pytest
from yaml import YAMLError # type: ignore
from yaml import YAMLError
from core.tools.utils.yaml_utils import load_yaml_file