Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Added typing stub file #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
penberg merged 2 commits into tursodatabase:main from ImFstAsFckBoi:main
Mar 26, 2025
Merged

Added typing stub file #48

penberg merged 2 commits into tursodatabase:main from ImFstAsFckBoi:main
Mar 26, 2025

Conversation

Copy link
Contributor

@ImFstAsFckBoi ImFstAsFckBoi commented Mar 15, 2024
edited
Loading

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

kkyouma reacted with heart emoji
Copy link
Contributor Author

I've now also added a test case for this... 4 months later 🙃. I also cleaned up git history.

@penberg penberg merged commit eb91431 into tursodatabase:main Mar 26, 2025
penberg added a commit that referenced this pull request Mar 26, 2025
This reverts commit eb91431, reversing
changes made to 8e342c0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@LucioFranco LucioFranco Awaiting requested review from LucioFranco

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /