From 73c7ac00f426548d88c8af11e9a94d4788e817c8 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 15 Sep 2024 01:37:45 +0200 Subject: [PATCH] os/str --- rwx/os/abstract.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rwx/os/abstract.py b/rwx/os/abstract.py index 2d86f7e..e985dc5 100644 --- a/rwx/os/abstract.py +++ b/rwx/os/abstract.py @@ -15,3 +15,10 @@ class OS(ABC): @abstractmethod def get_name(self) -> str: """Return mandatory name.""" + + def __str__(self) -> str: + """Return root & name.""" + return f"""\ +root = {self.root} +name = {self.name} +"""