GitXplorerGitXplorer
h

python-stubs

public
2 stars
0 forks
0 issues

Commits

List of commits on branch main.
Verified
f0129dc459237d06ee8df671beea468fbe7ff485

Update project and better numpy (#20)

hhamdanal committed 7 days ago
Verified
4894dbcef886c2ff1f581753dccfb1aa2e5933de

Bump astral-sh/setup-uv from 4 to 5 (#19)

ddependabot[bot] committed 14 days ago
Verified
d9f194ab34ddc2a6eeb0fd53a896cd08d9fb7924

Use uv in CI (#18)

hhamdanal committed 20 days ago
Verified
2d2619a20c99f1d372f593a58df5684271280d84

Update tools (#17)

hhamdanal committed 20 days ago
Verified
72a33d8979cecc2bbfa04ac841c2cf7ff0767a6d

Update pp control and timeseries (#16)

hhamdanal committed 20 days ago
Verified
3e229766c7e4f197caecdb1d4308d8677c7594b3

Update project (#15)

hhamdanal committed 2 months ago

README

The README file for this repository.

python-stubs

This repository provides stubs for some python packages that do not offer proper type hints and have no stubs available. The main goal is to provide helpers for VSCode's Pylance language server to offer better autocompletion. Another goal is to improve the performance of VSCode's python extension where it suffers from slow downs with some packages (For example, installing pandapower without the stubs, python analysis in VSCode takes up to 7 seconds to complete on every change).

Usage

  1. Clone the repository:
    git clone https://github.com/hamdanal/python-stubs /path/to/python-stubs
  2. Add the stubs to "extraPaths" in your VSCode's settings.json:
    "python.analysis.extraPaths": ["/path/to/python-stubs/stubs"]

Contributing

Contributions of any kind are welcome. Please open an issue or a send pull request.

To set up a development environment:

  1. Create a virtual environment: python -m .venv venv
  2. Activate the virtual environment:
    • Unix: . .venv/bin/activate
    • Windows: .venv\Scripts\activate
  3. Install the dependencies: python -m pip install -r requirements.txt

Run python run.py --help for more.

License

This project is licensed under the MIT License.

List of available stubs

Project Import name Links Status Type-checked Tested
django-netfields netfields PyPI, GitHub Complete Yes No
django-postgres-extra psqlextra PyPI, GitHub Incomplete Yes No
pandapower pandapower PyPI, GitHub Incomplete Yes No
geopandas geopandas PyPI, GitHub Complete Yes Yes

Upstreamed stubs

These stubs were included here in the past and have been moved to typeshed or to the their libraries.

Project Moved to Installation
seaborn typeshed pip install types-seaborn
shapely typeshed pip install types-shapely