(cls, row)
| 99 | |
| 100 | @classmethod |
| 101 | def from_row(cls, row): |
| 102 | if len(row) != len(cls.fields): |
| 103 | raise ValueError("Wrong number of fields") |
| 104 | kwargs = dict(pair for pair in zip(cls.fields, row)) |
| 105 | return cls(**kwargs) |
| 106 | |
| 107 | |
| 108 | print("Example 5") |
nothing calls this directly
no outgoing calls
no test coverage detected