Converted the Sublime Music Adapter API classes to ABCs

This commit is contained in:
Sumner Evans
2020-04-19 23:46:45 -06:00
parent dc19098aeb
commit b740729ca0
28 changed files with 341 additions and 7627 deletions

View File

@@ -1,16 +1,16 @@
import abc
from dataclasses import dataclass
from pathlib import Path
from typing import (
Any,
Dict,
Iterable,
List,
Sequence,
Optional,
Type,
Tuple,
Type,
Union,
)
from pathlib import Path
from .api_objects import (
Playlist,
@@ -187,7 +187,7 @@ class Adapter(abc.ABC):
# These properties determine if what things the adapter can be used to do
# at the current moment.
# =========================================================================
def get_playlists(self) -> List[Playlist]:
def get_playlists(self) -> Sequence[Playlist]:
"""
Gets a list of all of the :class:`sublime.adapter.api_objects.Playlist`
objects known to the adapter.