You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Implement inspect.signature() for sqlite3 connection object #118406
However, inspect.signature() will not accept that whole docstring. Manually spelling out only the signature part does not work either. Do you have a solution in hand?
Activity
erlend-aasland commentedon Apr 30, 2024
This is interesting. At first, I thought a simple patch a la this could fix it:
Details
However,
inspect.signature()will not accept that whole docstring. Manually spelling out only the signature part does not work either. Do you have a solution in hand?serhiy-storchaka commentedon Apr 30, 2024
Simply return
"(sql)"(or"(sql, /)"?).I have not solved this simple issue only because it needs tests, and searching in which of many of test_sqlite3 files is more suitable takes time.
serhiy-storchaka commentedon Apr 30, 2024
See also #118427 for example.
erlend-aasland commentedon Apr 30, 2024
Ah, I used the incorrect signature. I'll propose a PR soon.
pythongh-118406: Add signature for sqlite3.Connection objects
gh-118406: Add signature for sqlite3.Connection objects (#118428)
pythongh-118406: Add signature for sqlite3.Connection objects (python…