Skip to content

Commit 96d8432

Browse files
committed
Added typehints for artist and title to library models.
1 parent 9ba0a38 commit 96d8432

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

beets/library/models.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ class LibModel(dbcore.Model["Library"]):
3939

4040
# Config key that specifies how an instance should be formatted.
4141
_format_config_key: str
42+
43+
# Typehints for properties
4244
path: bytes
45+
artist: str
4346

4447
@cached_classproperty
4548
def _types(cls) -> dict[str, types.Type]:
@@ -753,6 +756,9 @@ def _queries(cls) -> dict[str, FieldQueryType]:
753756
# Cached album object. Read-only.
754757
__album: Album | None = None
755758

759+
# Typehints for properties
760+
title: str
761+
756762
@cached_classproperty
757763
def _relation(cls) -> type[Album]:
758764
return Album

0 commit comments

Comments
 (0)