libtorrent version
2.0.11
Python version
3.13
Problem
Tried downloading and using libtorrent binding from PyPI but pyright lsp server cannot do type hints. Probably because package consists of one .so file and nothing more
Steps to reproduce
- Create new python project with
python -m venv ./.venv
- Make project active with
source .venv/bin/activate
- Add libtorrent package with
pip add libtorrent
- Create new python file and try importing libtorrent
Expected: type hints help with development
Actual: no type hints
Workaround
Manually add __init.pyi from repository to package in .venv/lib/python3.13/site-packages/libtorrent and .venv/lib64/python3.13/site-packages/libtorrent
libtorrent version
2.0.11
Python version
3.13
Problem
Tried downloading and using libtorrent binding from PyPI but pyright lsp server cannot do type hints. Probably because package consists of one .so file and nothing more
Steps to reproduce
python -m venv ./.venvsource .venv/bin/activatepip add libtorrentExpected: type hints help with development
Actual: no type hints
Workaround
Manually add
__init.pyifrom repository to package in .venv/lib/python3.13/site-packages/libtorrent and .venv/lib64/python3.13/site-packages/libtorrent