Merge "mypy: Cleanup "noqa: H301" comments"

This commit is contained in:
Zuul 2024-08-09 13:49:25 +00:00 committed by Gerrit Code Review
commit 24e4e49ea7
13 changed files with 13 additions and 13 deletions

View File

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

View File

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

View File

@ -15,7 +15,7 @@
from __future__ import annotations 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_log import log as logging
from oslo_utils import netutils from oslo_utils import netutils

View File

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

View File

@ -20,7 +20,7 @@ import glob
import os import os
import re import re
import time 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_concurrency import processutils as putils
from oslo_log import log as logging from oslo_log import log as logging

View File

@ -21,7 +21,7 @@ import glob
import json import json
import os.path import os.path
import time 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 import uuid as uuid_lib
from oslo_concurrency import processutils as putils from oslo_concurrency import processutils as putils

View File

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

View File

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

View File

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

View File

@ -20,7 +20,7 @@ from __future__ import annotations
import math import math
import os import os
import re 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_concurrency import processutils as putils
from oslo_log import log as logging from oslo_log import log as logging

View File

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

View File

@ -19,7 +19,7 @@ import inspect
import logging as py_logging import logging as py_logging
import os import os
import time 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 import uuid as uuid_lib
from oslo_concurrency import processutils from oslo_concurrency import processutils

View File

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