Open
Description
Following the examples in the documentation
:
dataset = weave.Dataset(
name='grammar',
rows=[
{'id': '0', 'sentence': "He no likes ice cream.", 'correction': "He doesn't like ice cream."},
{'id': '1', 'sentence': "She goed to the store.", 'correction': "She went to the store."},
{'id': '2', 'sentence': "They plays video games all day.", 'correction': "They play video games all day."}
]
)
I get an error:
Argument of type "list[dict[str, str]]" cannot be assigned to parameter "rows" of type "Table | WeaveTable" in function "__init__"
Type "list[dict[str, str]]" is incompatible with type "Table | WeaveTable"
"list[dict[str, str]]" is incompatible with "Table"
"list[dict[str, str]]" is incompatible with "WeaveTable"
weave: v0.51.51
Metadata
Metadata
Assignees
Labels
No labels