Remove "from __future__ import annotations"
Now that the 2024.2 release only supports python 3.9+, we don't need this __future__ import anymore. (See PEP-585 for details.) Change-Id: I7b180fc3e5c140ea272738e6eaa10931e9ca0142
This commit is contained in:
parent
ef51e9b6b5
commit
9a1ab4094e
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -50,8 +50,6 @@
|
||||
|
||||
"""CLI interface for cinder management."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import collections
|
||||
import collections.abc as collections_abc
|
||||
import errno
|
||||
|
@ -15,8 +15,6 @@
|
||||
|
||||
"""CLI interface for cinder status commands."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -12,8 +12,6 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
__all__ = [
|
||||
'init',
|
||||
'cleanup',
|
||||
|
@ -17,8 +17,6 @@
|
||||
Pluggable Weighing support
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import abc
|
||||
from typing import Iterable, Optional
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -15,8 +15,6 @@
|
||||
|
||||
"""Manage backends in the current zone."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from collections import abc
|
||||
import random
|
||||
import typing
|
||||
|
@ -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
|
||||
|
@ -16,8 +16,6 @@
|
||||
|
||||
"""Handles all requests relating to volumes."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import ast
|
||||
import collections
|
||||
import datetime
|
||||
|
@ -14,8 +14,6 @@
|
||||
# under the License.
|
||||
"""RADOS Block Device Driver"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import binascii
|
||||
import errno
|
||||
import json
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -35,8 +35,6 @@ intact.
|
||||
|
||||
"""
|
||||
|
||||
from __future__ import annotations # Remove when only supporting Python 3.9+
|
||||
|
||||
import functools
|
||||
import time
|
||||
import typing
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user