def from_table_row(cls, db_conn: DatabaseConnection,
row: Row) -> Condition:
"""Build condition from row, including VersionedAttributes."""
- condition = cls(row[0], row[1])
+ condition = super().from_table_row(db_conn, row)
+ assert isinstance(condition, Condition)
for title_row in db_conn.exec('SELECT * FROM condition_titles '
'WHERE parent_id = ?', (row[0],)):
- condition.title.history[title_row[1]] = title_row[2]
+ condition.title.history[title_row[1]]\
+ = title_row[2] # pylint: disable=no-member
for desc_row in db_conn.exec('SELECT * FROM condition_descriptions '
'WHERE parent_id = ?', (row[0],)):
- condition.description.history[desc_row[1]] = desc_row[2]
+ condition.description.history[desc_row[1]]\
+ = desc_row[2] # pylint: disable=no-member
return condition
@classmethod