mirror of
https://github.com/beetbox/beets.git
synced 2025-12-30 04:22:40 +01:00
Fix some typings
This commit is contained in:
parent
3f8afb9a45
commit
736e93aa82
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue