object
All checks were successful
/ job (push) Successful in 1m14s

This commit is contained in:
Marc Beninca 2024-10-22 18:33:35 +02:00
parent 75e8940a43
commit 018f99c1d6
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
9 changed files with 17 additions and 17 deletions

View file

@ -1,7 +1,7 @@
"""Handle errors.""" """Handle errors."""
from rwx import Class from rwx import Object
class Error(Class, Exception): class Error(Object, Exception):
"""Parent class for all errors.""" """Parent class for all errors."""

View file

@ -3,10 +3,10 @@
from abc import ABC, abstractmethod from abc import ABC, abstractmethod
from pathlib import Path from pathlib import Path
from rwx import Class from rwx import Object
class OS(Class, ABC): class OS(Object, ABC):
"""Operating System.""" """Operating System."""
def __init__(self, path: Path) -> None: def __init__(self, path: Path) -> None:

View file

@ -2,11 +2,11 @@
from abc import ABC, abstractmethod from abc import ABC, abstractmethod
from rwx import Class from rwx import Object
from rwx.ps import Command from rwx.ps import Command
class PM(Class, ABC): class PM(Object, ABC):
"""Package Manager.""" """Package Manager."""
def __init__(self) -> None: def __init__(self) -> None:

View file

@ -2,10 +2,10 @@
from pathlib import Path from pathlib import Path
from rwx import Class from rwx import Object
class Project(Class): class Project(Object):
"""Parent class for any type of project.""" """Parent class for any type of project."""
def __init__(self, file: Path) -> None: def __init__(self, file: Path) -> None:

View file

@ -2,10 +2,10 @@
import subprocess import subprocess
from rwx import Class, txt from rwx import Object, txt
class Command(Class): class Command(Object):
"""Command to run.""" """Command to run."""
def __init__(self, *arguments: str | tuple[str, ...]) -> None: def __init__(self, *arguments: str | tuple[str, ...]) -> None:

View file

@ -1,9 +1,9 @@
"""FreeTube channels.""" """FreeTube channels."""
from rwx import Class from rwx import Object
class Channel(Class): class Channel(Object):
"""FreeTube channel.""" """FreeTube channel."""
def __init__(self, uid: str, name: str) -> None: def __init__(self, uid: str, name: str) -> None:

View file

@ -1,11 +1,11 @@
"""FreeTube settings.""" """FreeTube settings."""
from rwx import Class from rwx import Object
from .db import to_db from .db import to_db
class Setting(Class): class Setting(Object):
"""FreeTube setting.""" """FreeTube setting."""
def __init__(self, uid: str, value: object) -> None: def __init__(self, uid: str, value: object) -> None:

View file

@ -1,9 +1,9 @@
"""FreeTube videos.""" """FreeTube videos."""
from rwx import Class from rwx import Object
class Video(Class): class Video(Object):
"""FreeTube video.""" """FreeTube video."""
def __init__(self, uid: str, name: str) -> None: def __init__(self, uid: str, name: str) -> None: