mypy: Disable import-untyped error code

This is nicer than a whole load of type: ignore comments.

Change-Id: I6cfc2907a3ce264aadd11c48a42fb5ea0d86c20b
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
Stephen Finucane
2026-03-06 15:37:47 +00:00
parent b21f8e2ccc
commit a6293c406f
5 changed files with 10 additions and 9 deletions

View File

@@ -10,8 +10,8 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo_config import cfg # type: ignore
from oslo_policy import opts as policy_opts # type: ignore
from oslo_config import cfg
from oslo_policy import opts as policy_opts
from oslo_utils import fileutils
from oslo_upgradecheck import upgradecheck

View File

@@ -15,11 +15,11 @@ import os.path
import tempfile
import yaml
from oslo_config import cfg # type: ignore
from oslo_config import cfg
from oslo_config import fixture as config
from oslo_policy import opts as policy_opts # type: ignore
from oslo_serialization import jsonutils # type: ignore
from oslotest import base # type: ignore
from oslo_policy import opts as policy_opts
from oslo_serialization import jsonutils
from oslotest import base
from oslo_upgradecheck import common_checks
from oslo_upgradecheck import upgradecheck

View File

@@ -22,8 +22,8 @@ import subprocess
import sys
from unittest import mock
from oslo_config import cfg # type: ignore
from oslotest import base # type: ignore
from oslo_config import cfg
from oslotest import base
from oslo_upgradecheck import upgradecheck

View File

@@ -21,7 +21,7 @@ import traceback
from typing import Any, TypedDict
import enum
from oslo_config import cfg # type: ignore
from oslo_config import cfg
import prettytable
from oslo_upgradecheck._i18n import _

View File

@@ -42,6 +42,7 @@ show_column_numbers = true
show_error_context = true
strict = true
exclude = '(?x)(doc | examples | releasenotes)'
disable_error_code = ["import-untyped"]
[[tool.mypy.overrides]]
module = ["oslo_upgradecheck.tests.*"]