os/str
This commit is contained in:
parent
f2991cff04
commit
73c7ac00f4
1 changed files with 7 additions and 0 deletions
|
@ -15,3 +15,10 @@ class OS(ABC):
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def get_name(self) -> str:
|
def get_name(self) -> str:
|
||||||
"""Return mandatory name."""
|
"""Return mandatory name."""
|
||||||
|
|
||||||
|
def __str__(self) -> str:
|
||||||
|
"""Return root & name."""
|
||||||
|
return f"""\
|
||||||
|
root = {self.root}
|
||||||
|
name = {self.name}
|
||||||
|
"""
|
||||||
|
|
Loading…
Reference in a new issue