mypy: Cleanup "noqa: H301" comments

We decided that H301 makes no sense for the "typing"
module, just set that in tox.ini instead of every
time it is used.

Change-Id: Ie209a7bc1b0c8fd55725de8ca3fac147b9735614
This commit is contained in:
Eric Harney 2023-11-15 12:16:37 -05:00
parent fb23a40a65
commit ba4fca67eb
13 changed files with 13 additions and 13 deletions

View File

@ -17,7 +17,7 @@
from __future__ import annotations
import traceback
from typing import Any, Optional # noqa: H301
from typing import Any, Optional
from oslo_concurrency import processutils as putils
from oslo_log import log as logging

View File

@ -15,7 +15,7 @@
from __future__ import annotations
import copy
from typing import Any, Generator # noqa: H301
from typing import Any, Generator
from os_brick.initiator import initiator_connector

View File

@ -15,7 +15,7 @@
from __future__ import annotations
from typing import Any, Optional # noqa: H301
from typing import Any, Optional
from oslo_log import log as logging
from oslo_utils import netutils

View File

@ -16,7 +16,7 @@ from __future__ import annotations
import os
import typing
from typing import Any, Optional # noqa: H301
from typing import Any, Optional
from oslo_log import log as logging
from oslo_service import loopingcall

View File

@ -20,7 +20,7 @@ import glob
import os
import re
import time
from typing import Any, Iterable, Optional, Union # noqa: H301
from typing import Any, Iterable, Optional, Union
from oslo_concurrency import processutils as putils
from oslo_log import log as logging

View File

@ -21,7 +21,7 @@ import glob
import json
import os.path
import time
from typing import (Callable, Optional, Sequence, Type, Union) # noqa: H301
from typing import (Callable, Optional, Sequence, Type, Union)
import uuid as uuid_lib
from oslo_concurrency import processutils as putils

View File

@ -15,7 +15,7 @@ from __future__ import annotations
import os
import tempfile
import typing
from typing import Any, Optional, Union # noqa: H301
from typing import Any, Optional, Union
if typing.TYPE_CHECKING:
import io

View File

@ -14,7 +14,7 @@
from __future__ import annotations
from typing import Any, Callable # noqa: H301
from typing import Any, Callable
from oslo_log import log as logging

View File

@ -15,7 +15,7 @@
from __future__ import annotations
import io
from typing import NoReturn, Optional # noqa: H301
from typing import NoReturn, Optional
from oslo_log import log as logging

View File

@ -20,7 +20,7 @@ from __future__ import annotations
import math
import os
import re
from typing import Any, Callable, Optional # noqa: H301
from typing import Any, Callable, Optional
from oslo_concurrency import processutils as putils
from oslo_log import log as logging

View File

@ -17,7 +17,7 @@ from __future__ import annotations
import errno
import os
from typing import Optional # noqa: H301
from typing import Optional
from oslo_concurrency import processutils as putils
from oslo_log import log as logging

View File

@ -19,7 +19,7 @@ import inspect
import logging as py_logging
import os
import time
from typing import Any, Callable, Optional, Type, Union # noqa: H301
from typing import Any, Callable, Optional, Type, Union
import uuid as uuid_lib
from oslo_concurrency import processutils

View File

@ -139,7 +139,7 @@ ignore-path=.tox,*.egg-info,doc/src/api,doc/source/drivers.rst,doc/build,.eggs/*
extension=.txt,.rst,.inc
[hacking]
import_exceptions = os_brick.i18n
import_exceptions = os_brick.i18n, typing
[testenv:bindep]
# Do not install any requirements. We want this to be fast and work even if