- cur.execute("SELECT create_analyzed_hnr_id(%s, %s)",
- (word_id, list(variants)))
- result = cur.fetchone()[0], variants[0] # type: ignore[no-untyped-call]
+ hid = cur.scalar("SELECT create_analyzed_hnr_id(%s, %s)",
+ (word_id, list(variants)))
+ result = hid, variants[0]