Merge "Remove "from __future__ import annotations""

This commit is contained in:
Zuul 2024-07-06 14:03:33 +00:00 committed by Gerrit Code Review
commit d5cd6f4736
25 changed files with 1 additions and 49 deletions

View File

@ -10,8 +10,6 @@
# License for the specific language governing permissions and limitations
# under the License.
from __future__ import annotations
import typing
from typing import Any, Generator, Iterable, Optional, Union

View File

@ -13,8 +13,6 @@
# License for the specific language governing permissions and limitations
# under the License.
from __future__ import annotations
import enum
import json
import os

View File

@ -17,8 +17,6 @@
"""Handles all requests relating to the volume backups service."""
from __future__ import annotations
from datetime import datetime
import random
from typing import Optional

View File

@ -50,8 +50,6 @@
"""CLI interface for cinder management."""
from __future__ import annotations
import collections
import collections.abc as collections_abc
import errno

View File

@ -15,8 +15,6 @@
"""CLI interface for cinder status commands."""
from __future__ import annotations
import os
import sys

View File

@ -17,8 +17,6 @@
"""RequestContext: context for requests that persist through all of cinder."""
from __future__ import annotations
import copy
from typing import Any, Optional

View File

@ -10,8 +10,6 @@
# License for the specific language governing permissions and limitations
# under the License.
from __future__ import annotations
import os
from typing import Any, Optional

View File

@ -16,8 +16,6 @@
"""Implementation of an image service that uses Glance as the backend"""
from __future__ import annotations # Remove when only supporting python 3.9+
import copy
import itertools
import random

View File

@ -23,8 +23,6 @@ Some slight modifications, but at some point
we should look at maybe pushing this up to Oslo
"""
from __future__ import annotations # Remove when only supporting python 3.9+
import contextlib
import errno
import io

View File

@ -12,8 +12,6 @@
# License for the specific language governing permissions and limitations
# under the License.
from __future__ import annotations
__all__ = [
'init',
'cleanup',

View File

@ -17,8 +17,6 @@
Pluggable Weighing support
"""
from __future__ import annotations
import abc
from typing import Iterable, Optional

View File

@ -13,8 +13,6 @@
# License for the specific language governing permissions and limitations
# under the License.
from __future__ import annotations # Remove when only supporting python 3.9+
import operator
import re
import sys

View File

@ -20,8 +20,6 @@ You can customize this scheduler by specifying your own volume Filters and
Weighing Functions.
"""
from __future__ import annotations
from typing import (Optional, Union)
from oslo_config import cfg

View File

@ -10,8 +10,6 @@
# License for the specific language governing permissions and limitations
# under the License.
from __future__ import annotations # Remove when only supporting python 3.9+
from typing import Any, Optional
from oslo_log import log as logging

View File

@ -15,8 +15,6 @@
"""Manage backends in the current zone."""
from __future__ import annotations
from collections import abc
import random
import typing

View File

@ -25,8 +25,6 @@
should be placed in volume_utils instead.
"""
from __future__ import annotations # Remove when only supporting python 3.9+
from collections import OrderedDict
import contextlib
import datetime

View File

@ -16,8 +16,6 @@
"""Handles all requests relating to volumes."""
from __future__ import annotations
import ast
import collections
import datetime

View File

@ -14,8 +14,6 @@
# under the License.
"""RADOS Block Device Driver"""
from __future__ import annotations
import binascii
import errno
import json

View File

@ -11,8 +11,6 @@
# under the License.
from __future__ import annotations # Remove when only supporting python 3.9+
from typing import Any, Optional, Type, Union
from oslo_config import cfg

View File

@ -10,8 +10,6 @@
# License for the specific language governing permissions and limitations
# under the License.
from __future__ import annotations
import binascii
import traceback
import typing

View File

@ -35,8 +35,6 @@ intact.
"""
from __future__ import annotations # Remove when only supporting Python 3.9+
import functools
import time
import typing

View File

@ -12,8 +12,6 @@
# License for the specific language governing permissions and limitations
# under the License.
from __future__ import annotations
from typing import Optional, Union
from cinder.common import constants

View File

@ -19,8 +19,6 @@
"""Built-in volume type properties."""
from __future__ import annotations
from typing import Any, Iterable, Optional, Union
from oslo_config import cfg

View File

@ -14,8 +14,6 @@
"""Volume-related Utilities and helpers."""
from __future__ import annotations # Remove when only supporting python 3.9+
import abc
import ast
import functools

View File

@ -5,7 +5,7 @@ long_description = file: README.rst
author = OpenStack
author_email = openstack-discuss@lists.openstack.org
url = https://docs.openstack.org/cinder/latest/
python_requires = >=3.8
python_requires = >=3.9
classifiers =
Environment :: OpenStack
Intended Audience :: Information Technology