Skip to content

psycopg2: Annotate cursor execute* and dunder methods - #7460

Merged
JelleZijlstra merged 3 commits into
python:masterfrom
srittau:psycopg2-execute
Mar 8, 2022
Merged

JelleZijlstra merged 3 commits into
python:masterfrom
srittau:psycopg2-execute

Conversation

@srittau

@srittau srittau commented Mar 8, 2022

Copy link
Copy Markdown
Collaborator

No description provided.

@srittau srittau changed the title psycopg2: Annotate cursor.execute(many) psycopg2: Annotate cursor methods Mar 8, 2022
@srittau srittau changed the title psycopg2: Annotate cursor methods psycopg2: Annotate cursor execute* and dunder methods Mar 8, 2022
@JelleZijlstra

Copy link
Copy Markdown
Member

Didn't review all the types in the C code but looks good.

@JelleZijlstra
JelleZijlstra merged commit 889164c into python:master Mar 8, 2022
@srittau
srittau deleted the psycopg2-execute branch March 8, 2022 16:19
Comment on lines +366 to +367
def execute(self, query: str | bytes, vars: _Vars = ...) -> None: ...
def executemany(self, query: str | bytes, vars_list: Iterable[_Vars]) -> None: ...

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

psycopg2 also accepts Composable as the query: #7494.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants