MCPcopy Index your code
hub / github.com/RustPython/RustPython / Cfg

Class Cfg

scripts/libc_posix.py:56–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54
55@dataclasses.dataclass(eq=True, frozen=True, slots=True)
56class Cfg:
57 inner: str
58
59 def __str__(self) -> str:
60 return self.inner
61
62 def __lt__(self, other) -> bool:
63 si, oi = map(str, (self.inner, other.inner))
64
65 # Smaller length cfgs are smaller, regardless of value.
66 return (len(si), si) < (len(oi), oi)
67
68
69@dataclasses.dataclass(frozen=True, kw_only=True, slots=True)

Callers 1

libc_posix.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected