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).