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 # License for the specific language governing permissions and limitations
# under the License. # under the License.
from __future__ import annotations
import typing import typing
from typing import Any, Generator, Iterable, Optional, Union from typing import Any, Generator, Iterable, Optional, Union

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -16,8 +16,6 @@
"""Implementation of an image service that uses Glance as the backend""" """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 copy
import itertools import itertools
import random 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 we should look at maybe pushing this up to Oslo
""" """
from __future__ import annotations # Remove when only supporting python 3.9+
import contextlib import contextlib
import errno import errno
import io import io

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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