object
This commit is contained in:
parent
e32da9d7fa
commit
75e8940a43
4 changed files with 8 additions and 8 deletions
|
@ -5,8 +5,8 @@ __version__ = "0.0.1"
|
||||||
from os import linesep
|
from os import linesep
|
||||||
|
|
||||||
|
|
||||||
class Class:
|
class Object:
|
||||||
"""Root class."""
|
"""Root object."""
|
||||||
|
|
||||||
def __repr__(self) -> str:
|
def __repr__(self) -> str:
|
||||||
"""Return machine-readable state.
|
"""Return machine-readable state.
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
"""FreeTube artists."""
|
"""FreeTube artists."""
|
||||||
|
|
||||||
from rwx import Class
|
from rwx import Object
|
||||||
|
|
||||||
|
|
||||||
class Artist(Class):
|
class Artist(Object):
|
||||||
"""FreeTube artist."""
|
"""FreeTube artist."""
|
||||||
|
|
||||||
def __init__(self, uid: str, name:str) -> None:
|
def __init__(self, uid: str, name:str) -> None:
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
"""FreeTube playlists."""
|
"""FreeTube playlists."""
|
||||||
|
|
||||||
from rwx import Class
|
from rwx import Object
|
||||||
|
|
||||||
from .videos import Video
|
from .videos import Video
|
||||||
|
|
||||||
|
|
||||||
class Playlist(Class):
|
class Playlist(Object):
|
||||||
"""FreeTube playlist."""
|
"""FreeTube playlist."""
|
||||||
|
|
||||||
def __init__(self, uid: str, name: str) -> None:
|
def __init__(self, uid: str, name: str) -> None:
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
"""FreeTube profiles."""
|
"""FreeTube profiles."""
|
||||||
|
|
||||||
from rwx import Class
|
from rwx import Object
|
||||||
|
|
||||||
from .channels import Channel
|
from .channels import Channel
|
||||||
|
|
||||||
|
|
||||||
class Profile(Class):
|
class Profile(Object):
|
||||||
"""FreeTube profile."""
|
"""FreeTube profile."""
|
||||||
|
|
||||||
def __init__(self, uid: str, name: str) -> None:
|
def __init__(self, uid: str, name: str) -> None:
|
||||||
|
|
Loading…
Reference in a new issue