libsql-experimental-python icon indicating copy to clipboard operation
libsql-experimental-python copied to clipboard

Added typing stub file

Open ImFstAsFckBoi opened this issue 11 months ago • 1 comments

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 :)

before image

ImFstAsFckBoi avatar Mar 15 '24 20:03 ImFstAsFckBoi