Skip to content

Commit d5fb9c2

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "typing: Use objects from typing (redux)"
2 parents 6a1ff37 + 50664d1 commit d5fb9c2

3 files changed

Lines changed: 7 additions & 8 deletions

File tree

openstackclient/network/v2/fwaas/group.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# under the License.
1515

1616
import logging
17-
import typing
17+
from typing import Any
1818

1919
from cliff import columns as cliff_columns
2020
from osc_lib.cli import identity as identity_utils
@@ -398,7 +398,7 @@ def get_parser(self, prog_name):
398398
return parser
399399

400400
def _get_attrs(self, client, parsed_args):
401-
attrs: dict[str, typing.Any] = {}
401+
attrs: dict[str, Any] = {}
402402
if parsed_args.ingress_firewall_policy:
403403
attrs['ingress_firewall_policy_id'] = None
404404
if parsed_args.egress_firewall_policy:

openstackclient/network/v2/fwaas/policy.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@
1212
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
1313
# License for the specific language governing permissions and limitations
1414
# under the License.
15-
#
1615

1716
import logging
18-
import typing
17+
from typing import Any
1918

2019
from osc_lib.cli import identity as identity_utils
2120
from osc_lib import exceptions
@@ -456,7 +455,7 @@ def get_parser(self, prog_name):
456455
return parser
457456

458457
def _get_attrs(self, client_manager, parsed_args):
459-
attrs: dict[str, typing.Any] = {}
458+
attrs: dict[str, Any] = {}
460459
client = client_manager.network
461460

462461
if parsed_args.firewall_rule:

openstackclient/network/v2/fwaas/rule.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
1313
# License for the specific language governing permissions and limitations
1414
# under the License.
15-
#
15+
1616
import logging
17-
import typing
17+
from typing import Any
1818

1919
from cliff import columns as cliff_columns
2020
from osc_lib.cli import identity as identity_utils
@@ -505,7 +505,7 @@ def get_parser(self, prog_name):
505505
return parser
506506

507507
def _get_attrs(self, client_manager, parsed_args):
508-
attrs: dict[str, typing.Any] = {}
508+
attrs: dict[str, Any] = {}
509509
if parsed_args.source_ip_address:
510510
attrs['source_ip_address'] = None
511511
if parsed_args.source_port:

0 commit comments

Comments
 (0)