Merge "mypy: Cleanup "noqa: H301" comments"
This commit is contained in:
commit
befc7277a1
@ -13,7 +13,7 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import typing
|
||||
from typing import Any, Generator, Iterable, Optional, Union # noqa: H301
|
||||
from typing import Any, Generator, Iterable, Optional, Union
|
||||
|
||||
from keystoneauth1 import exceptions as ks_exc
|
||||
from keystoneauth1 import identity
|
||||
|
@ -20,7 +20,7 @@ import json
|
||||
import os
|
||||
import re
|
||||
import typing
|
||||
from typing import Any, Iterable, Optional, Union # noqa: H301
|
||||
from typing import Any, Iterable, Optional, Union
|
||||
import urllib
|
||||
|
||||
from oslo_config import cfg
|
||||
|
@ -48,7 +48,7 @@ import os
|
||||
import re
|
||||
import subprocess
|
||||
import time
|
||||
from typing import Dict, List, Optional, Tuple # noqa: H301
|
||||
from typing import Dict, List, Optional, Tuple
|
||||
|
||||
import eventlet
|
||||
from os_brick.initiator import linuxrbd
|
||||
|
@ -63,7 +63,7 @@ import re
|
||||
import sys
|
||||
import time
|
||||
import typing
|
||||
from typing import Any, Callable, Optional, Tuple, Union # noqa: H301
|
||||
from typing import Any, Callable, Optional, Tuple, Union
|
||||
|
||||
from oslo_config import cfg
|
||||
from oslo_db import exception as db_exc
|
||||
|
@ -20,7 +20,7 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import copy
|
||||
from typing import Any, Optional # noqa: H301
|
||||
from typing import Any, Optional
|
||||
|
||||
from keystoneauth1.access import service_catalog as ksa_service_catalog
|
||||
from keystoneauth1 import plugin
|
||||
|
@ -21,7 +21,7 @@ import inspect
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
from typing import Callable, Optional # noqa: H301
|
||||
from typing import Callable, Optional
|
||||
import uuid
|
||||
|
||||
import decorator
|
||||
|
@ -22,7 +22,7 @@ SHOULD include dedicated exception logging.
|
||||
|
||||
"""
|
||||
|
||||
from typing import Optional, Union # noqa: H301
|
||||
from typing import Optional, Union
|
||||
|
||||
from oslo_log import log as logging
|
||||
from oslo_versionedobjects import exception as obj_exc
|
||||
|
@ -13,7 +13,7 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
from typing import Any, Optional # noqa: H301
|
||||
from typing import Any, Optional
|
||||
|
||||
from oslo_log import log as logging
|
||||
# For more information please visit: https://wiki.openstack.org/wiki/TaskFlow
|
||||
|
@ -25,7 +25,7 @@ import shutil
|
||||
import sys
|
||||
import textwrap
|
||||
import time
|
||||
from typing import (Any, Callable, Iterable, NoReturn, Optional) # noqa: H301
|
||||
from typing import (Any, Callable, Iterable, NoReturn, Optional)
|
||||
import urllib
|
||||
import urllib.parse
|
||||
|
||||
|
@ -32,7 +32,7 @@ import math
|
||||
import os
|
||||
import re
|
||||
import tempfile
|
||||
from typing import ContextManager, Generator, Optional # noqa: H301
|
||||
from typing import ContextManager, Generator, Optional
|
||||
|
||||
import cryptography
|
||||
from cursive import exception as cursive_exception
|
||||
|
@ -17,7 +17,7 @@
|
||||
|
||||
import sys
|
||||
import typing
|
||||
from typing import Optional, Type # noqa: H301
|
||||
from typing import Optional, Type
|
||||
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log as logging
|
||||
|
@ -20,7 +20,7 @@ Pluggable Weighing support
|
||||
from __future__ import annotations
|
||||
|
||||
import abc
|
||||
from typing import Iterable, Optional # noqa: H301
|
||||
from typing import Iterable, Optional
|
||||
|
||||
from oslo_log import log as logging
|
||||
|
||||
|
@ -22,7 +22,7 @@ Weighing Functions.
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import (Optional, Union) # noqa: H301
|
||||
from typing import (Optional, Union)
|
||||
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log as logging
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
from __future__ import annotations # Remove when only supporting python 3.9+
|
||||
|
||||
from typing import Any, Optional # noqa: H301
|
||||
from typing import Any, Optional
|
||||
|
||||
from oslo_log import log as logging
|
||||
from oslo_utils import excutils
|
||||
|
@ -20,7 +20,7 @@ from __future__ import annotations
|
||||
from collections import abc
|
||||
import random
|
||||
import typing
|
||||
from typing import (Any, Iterable, Optional, Type, Union) # noqa: H301
|
||||
from typing import (Any, Iterable, Optional, Type, Union)
|
||||
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log as logging
|
||||
|
@ -44,8 +44,8 @@ import stat
|
||||
import sys
|
||||
import tempfile
|
||||
import typing
|
||||
from typing import Callable, Iterable, Iterator # noqa: H301
|
||||
from typing import Optional, Type, Union # noqa: H301
|
||||
from typing import Callable, Iterable, Iterator
|
||||
from typing import Optional, Type, Union
|
||||
|
||||
import eventlet
|
||||
from eventlet import tpool
|
||||
|
@ -21,7 +21,7 @@ from __future__ import annotations
|
||||
import ast
|
||||
import collections
|
||||
import datetime
|
||||
from typing import (Any, DefaultDict, Iterable, Optional, Union) # noqa: H301
|
||||
from typing import (Any, DefaultDict, Iterable, Optional, Union)
|
||||
|
||||
from castellan import key_manager
|
||||
from oslo_config import cfg
|
||||
|
@ -23,7 +23,7 @@ import math
|
||||
import os
|
||||
import tempfile
|
||||
import typing
|
||||
from typing import Any, Optional, Union # noqa: H301
|
||||
from typing import Any, Optional, Union
|
||||
import urllib.parse
|
||||
|
||||
from castellan import key_manager
|
||||
|
@ -27,7 +27,7 @@ import string
|
||||
import tempfile
|
||||
import time
|
||||
import typing
|
||||
from typing import Callable, List, Optional, Tuple, Union # noqa: H301
|
||||
from typing import Callable, List, Optional, Tuple, Union
|
||||
|
||||
from castellan import key_manager
|
||||
from os_brick.remotefs import remotefs as remotefs_brick
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
from __future__ import annotations # Remove when only supporting python 3.9+
|
||||
|
||||
from typing import Any, Optional, Type, Union # noqa: H301
|
||||
from typing import Any, Optional, Type, Union
|
||||
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log as logging
|
||||
|
@ -15,7 +15,7 @@ from __future__ import annotations
|
||||
import binascii
|
||||
import traceback
|
||||
import typing
|
||||
from typing import Any, Optional # noqa: H301
|
||||
from typing import Any, Optional
|
||||
|
||||
from castellan import key_manager
|
||||
import os_brick.initiator.connectors
|
||||
|
@ -40,7 +40,7 @@ from __future__ import annotations # Remove when only supporting Python 3.9+
|
||||
import functools
|
||||
import time
|
||||
import typing
|
||||
from typing import Any, Optional, Union # noqa: H301
|
||||
from typing import Any, Optional, Union
|
||||
|
||||
from castellan import key_manager
|
||||
from oslo_config import cfg
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Optional, Union # noqa: H301
|
||||
from typing import Optional, Union
|
||||
|
||||
from cinder.common import constants
|
||||
from cinder import context
|
||||
|
@ -21,7 +21,7 @@
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any, Iterable, Optional, Union # noqa: H301
|
||||
from typing import Any, Iterable, Optional, Union
|
||||
|
||||
from oslo_config import cfg
|
||||
from oslo_db import exception as db_exc
|
||||
|
@ -33,8 +33,8 @@ import tempfile
|
||||
import time
|
||||
import types
|
||||
import typing
|
||||
from typing import Any, BinaryIO, Callable, IO # noqa: H301
|
||||
from typing import Optional, Union # noqa: H301
|
||||
from typing import Any, BinaryIO, Callable, IO
|
||||
from typing import Optional, Union
|
||||
import uuid
|
||||
|
||||
from castellan.common.credentials import keystone_password
|
||||
|
Loading…
Reference in New Issue
Block a user