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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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 _
|
||||
|
||||
@@ -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.*"]
|
||||
|
||||
Reference in New Issue
Block a user