From 736e93aa8255e0503a20c557b6ff7c5353de434d Mon Sep 17 00:00:00 2001 From: Serene-Arc Date: Thu, 22 Sep 2022 11:23:19 +1000 Subject: [PATCH] Fix some typings --- beets/dbcore/query.py | 2 +- beets/dbcore/types.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/beets/dbcore/query.py b/beets/dbcore/query.py index d7cbd0c60..1b2310a90 100644 --- a/beets/dbcore/query.py +++ b/beets/dbcore/query.py @@ -18,7 +18,7 @@ import re from operator import mul from typing import Union, Tuple, List, Optional, Pattern, Any, Type, Iterator,\ - Collection, Mapping, MutableMapping, Sequence + Collection, MutableMapping, Sequence from beets import util from datetime import datetime, timedelta diff --git a/beets/dbcore/types.py b/beets/dbcore/types.py index 7cb150ffd..3e87d79d8 100644 --- a/beets/dbcore/types.py +++ b/beets/dbcore/types.py @@ -51,7 +51,7 @@ class Type: """ return self.model_type() - def format(self, value: TypingType[model_type]) -> str: + def format(self, value: model_type) -> str: """Given a value of this type, produce a Unicode string representing the value. This is used in template evaluation. """