(c: type[EnumT], x: Any)
| 65 | return [f(y) for y in x] |
| 66 | |
| 67 | def to_enum(c: type[EnumT], x: Any) -> EnumT: |
| 68 | assert isinstance(x, c) |
| 69 | return x.value |
| 70 | |
| 71 | def from_int(x: Any) -> int: |
| 72 | assert isinstance(x, int) and not isinstance(x, bool) |
no outgoing calls
no test coverage detected
searching dependent graphs…