class Parseable:
"A mix-in to provide conversions for argparse"
- def __repr__(self) -> str:
+ def __str__(self) -> str:
"""Return the member name without the class name"""
return cast(str, getattr(self, "name"))
- def __str__(self) -> str:
- return self.__repr__()
-
@classmethod
def from_string(cls: Any, name: str) -> Any:
"""A convenience method to be used with argparse"""
def has_fs_compression(self) -> bool:
return self.is_squashfs() or self.is_btrfs()
- def __repr__(self) -> str:
- return Parseable.__repr__(self)
def __str__(self) -> str:
return Parseable.__str__(self)
json = "json" # the standard manifest in json format
changelog = "changelog" # human-readable text file with package changelogs
- def __repr__(self) -> str:
- return Parseable.__repr__(self)
def __str__(self) -> str:
return Parseable.__str__(self)