From d6119ffce53772fe497924bab99e56a9bf5310d1 Mon Sep 17 00:00:00 2001 From: Serene-Arc Date: Fri, 9 Dec 2022 15:18:00 +1000 Subject: [PATCH] Fix typing --- beets/dbcore/db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beets/dbcore/db.py b/beets/dbcore/db.py index e4434f3b6..ee3ffcfb4 100755 --- a/beets/dbcore/db.py +++ b/beets/dbcore/db.py @@ -25,7 +25,7 @@ import contextlib from sqlite3 import Connection from types import TracebackType from typing import Iterable, Type, List, Tuple, NoReturn, Optional, Union, \ - Dict, Any, Generator, Iterator + Dict, Any, Generator, Iterator, Callable from unidecode import unidecode @@ -289,7 +289,7 @@ class Model: # gather the getter mapping every time. raise NotImplementedError() - def _template_funcs(self) -> NoReturn: + def _template_funcs(self) -> Mapping[str, Callable[[str], str]]: """Return a mapping from function names to text-transformer functions. """