From 8179d709df796f2192bbd5784aaeb871d1bbede1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Gajdu=C5=A1ek?= Date: Wed, 25 Oct 2023 15:47:26 +0200 Subject: [PATCH] F401: Remove unused import - typing --- wrapanapi/systems/ec2.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wrapanapi/systems/ec2.py b/wrapanapi/systems/ec2.py index 6b5beb74..24268bbe 100644 --- a/wrapanapi/systems/ec2.py +++ b/wrapanapi/systems/ec2.py @@ -1,7 +1,6 @@ import base64 import os import re -import typing import boto3 from boto3 import client as boto3client @@ -508,7 +507,7 @@ def get_tag_value(self, key) -> str: return tags[0].get("Value") return None - def get_tags(self, regex="") -> typing.List[dict]: + def get_tags(self, regex="") -> list[dict]: """ Returns a list of tags (a dict with keys 'Key' and 'Value'). Tags are taken from the resource properties. @@ -1808,7 +1807,7 @@ def cleanup_resources(self): self.remove_all_unused_volumes() self.remove_all_unused_ips() - def list_resources(self, query="", view="") -> typing.List[ResourceExplorerResource]: + def list_resources(self, query="", view="") -> list[ResourceExplorerResource]: """ Lists resources using AWS Resource Explorer (resource-explorer-2).