Skip to content

Commit

Permalink
F401: Remove unused import - typing
Browse files Browse the repository at this point in the history
  • Loading branch information
ogajduse committed Oct 25, 2023
1 parent c59f388 commit 8179d70
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions wrapanapi/systems/ec2.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import base64
import os
import re
import typing

import boto3
from boto3 import client as boto3client
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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).
Expand Down

0 comments on commit 8179d70

Please sign in to comment.