libsql-experimental-python
libsql-experimental-python copied to clipboard
Added typing stub file
This adds a stub file, adding type hints in Python. This added the connect
function as well as the Connection
and Cursor
classes. Everything is in the libsql_experimental.pyi
file. According to this PyO3 documentation, as long as there is no other Python files (excluding examples) Maturin will automatically install this file correctly, adding __init__.pyi
and py.typed
to site-packages. Below is a before and after example for the connect
function.
If there is anything I missed or misunderstood, let me know and ill fix it :)