MCPcopy Create free account
hub / github.com/archlinux/archinstall / from_string

Method from_string

archinstall/lib/models/device.py:795–803  ·  view source on GitHub ↗
(cls, s: str)

Source from the content-addressed store, hash-verified

793
794 @classmethod
795 def from_string(cls, s: str) -> Self | None:
796 s = s.lower()
797
798 for partition_flag in cls:
799 if s in (partition_flag.name.lower(), partition_flag.alias):
800 return partition_flag
801
802 debug(f'Partition flag not supported: {s}')
803 return None
804
805
806class PartitionGUID(Enum):

Callers 1

parse_argMethod · 0.80

Calls 1

debugFunction · 0.90

Tested by

no test coverage detected