Trying to use 'private' methods

This commit is contained in:
Sumner Evans
2020-04-24 20:32:19 -06:00
parent c3a94e1e3b
commit 7a1e332e1a
3 changed files with 4 additions and 4 deletions

View File

@@ -29,7 +29,6 @@ v0.9.1
keyring notification popup.
* The ``NM`` library is used instead of the deprecated ``NetworkManager`` and
``NMClient``. (Contributed by @anarcat.)
* Sublime Music will crash less often due to missing dependencies.
* Fixed some bugs where the state of the application wouldn't update when you
deleted/downloaded songs from certain parts of the application.

View File

@@ -169,7 +169,7 @@ class AdapterManager:
)
@staticmethod
def can_do(action_name: str):
def _can_do(action_name: str):
# It only matters that the ground truth one can service the request.
return (
AdapterManager._instance is not None
@@ -181,7 +181,7 @@ class AdapterManager:
@staticmethod
def can_get_playlists() -> bool:
return AdapterManager.can_do("get_playlists")
return AdapterManager._can_do("get_playlists")
@staticmethod
def get_playlists(
@@ -232,7 +232,7 @@ class AdapterManager:
@staticmethod
def can_get_playlist_details() -> bool:
return AdapterManager.can_do("get_playlist_details")
return AdapterManager._can_do("get_playlist_details")
@staticmethod
def get_playlist_details(

View File

@@ -73,6 +73,7 @@ class SortedManyToManyQuery(ManyToManyQuery):
]
accessor.through_model.insert_many(inserts).execute()
# TODO probably don't need
# def remove(self, value: Any) -> Any:
# # src_id = getattr(self._instance, self._src_attr)
# # if isinstance(value, SelectQuery):