From 9dc0040a121ad157ad1b712e603218e90ef9d8a9 Mon Sep 17 00:00:00 2001 From: Andrea Lanfranchi Date: Thu, 22 Feb 2024 12:41:21 +0100 Subject: [PATCH] Amend typing --- deepface/modules/recognition.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deepface/modules/recognition.py b/deepface/modules/recognition.py index 8e56c60..f975e3b 100644 --- a/deepface/modules/recognition.py +++ b/deepface/modules/recognition.py @@ -297,7 +297,7 @@ def find( return resp_obj -def __list_images(path: str) -> list[str]: +def __list_images(path: str) -> List[str]: """ List images in a given path Args: @@ -305,7 +305,7 @@ def __list_images(path: str) -> list[str]: Returns: images (list): list of exact image paths """ - images = list[str]() + images = [] pattern = re.compile(r".*\.(jpg|jpeg|png)$", re.IGNORECASE) for file_name in os.listdir(path): if pattern.match(file_name):