Skip to content

Implement inspect.signature() for sqlite3 connection object #118406

Closed
@serhiy-storchaka

Description

@serhiy-storchaka

Feature or enhancement

sqlite3.connection() returns a custom callable object. But inspect.signature() returns a generic <Signature (*args, **kwargs)> for it:

>>> import inspect, sqlite3
>>> con = sqlite3.connect(':memory:')
>>> con('select 1')
<sqlite3.Statement object at 0x7f76842d2fd0>
>>> inspect.signature(con)
<Signature (*args, **kwargs)>

This issue is similar to #118285 and #118402.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions