Fix some typings

This commit is contained in:
Serene-Arc 2022-09-22 11:23:19 +10:00
parent 3f8afb9a45
commit 736e93aa82
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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.
"""