feat: created layout for option
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
906ddb679d
commit
b5a5559f7b
@ -445,3 +445,16 @@ class Page:
|
|||||||
def download_song_to_target(self, source: Source, target: Target, desc: str = None) -> DownloadResult:
|
def download_song_to_target(self, source: Source, target: Target, desc: str = None) -> DownloadResult:
|
||||||
return DownloadResult()
|
return DownloadResult()
|
||||||
|
|
||||||
|
|
||||||
|
class Option:
|
||||||
|
"""
|
||||||
|
This could represent a data object, a string or a page.
|
||||||
|
"""
|
||||||
|
|
||||||
|
def __init__(self, value: Any, text: Optional[str] = None, keys: Set[str] = None):
|
||||||
|
self.value = value
|
||||||
|
self.text = text or str(value)
|
||||||
|
|
||||||
|
self.keys = keys or set()
|
||||||
|
self.keys.add(self.text)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user