Merge "mypy: Cleanup "noqa: H301" comments"
This commit is contained in:
commit
24e4e49ea7
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
2
tox.ini
2
tox.ini
@ -141,7 +141,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
|
||||
|
Loading…
Reference in New Issue
Block a user