From 4606ff20ce907595bd685ab4881d44243af1566e Mon Sep 17 00:00:00 2001 From: Serene-Arc Date: Thu, 15 Dec 2022 20:05:21 +1000 Subject: [PATCH] Add missing typing --- beets/autotag/match.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beets/autotag/match.py b/beets/autotag/match.py index 48a09e5ce..bfe11f5e8 100644 --- a/beets/autotag/match.py +++ b/beets/autotag/match.py @@ -19,7 +19,7 @@ releases and tracks. import datetime import re -from typing import List, Dict, Tuple, Iterable, Union, Iterator, Optional +from typing import List, Dict, Tuple, Iterable, Union, Optional from munkres import Munkres from collections import namedtuple @@ -64,7 +64,7 @@ Proposal = namedtuple('Proposal', ('candidates', 'recommendation')) # Primary matching functionality. -def current_metadata(items): +def current_metadata(items: List[Item]) -> Tuple[Dict, Dict]: """Extract the likely current metadata for an album given a list of its items. Return two dictionaries: - The most common value for each field.