-
Notifications
You must be signed in to change notification settings - Fork 50
Invariant Type on Cursor.executemany #572
Copy link
Copy link
Labels
bugSomething isn't workingSomething isn't workingregressionTracks issues which are regressionsTracks issues which are regressionstriage doneIssues that are triaged by dev team and are in investigation.Issues that are triaged by dev team and are in investigation.under development
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingregressionTracks issues which are regressionsTracks issues which are regressionstriage doneIssues that are triaged by dev team and are in investigation.Issues that are triaged by dev team and are in investigation.under development
Type
Fields
Give feedbackNo fields configured for Bug.
Describe the bug
The 2nd argument of
Cursor.executemanyis typed asseq_of_parameters: Union[List[Sequence[Any]], List[Mapping[str, Any]]]in version 1.6.0. This causes type errors on more precise arguments:This is a regression from version 1.5.0, where the type
seq_of_parameters: List[Sequence[Any]]didn't cause that problem. Suggestion: just use sequence instead of list and add linting for that.To reproduce