Type stubs for gurobipy
Project description
gurobipy-stubs
This package provides type hints for gurobipy, the Python API for Gurobi. These stubs help you to write typed Python code, and enhance many IDE's built-in auto completion features.
Example
With this type stubs package installed, static type checkers such as mypy willl be able to verify the types given in source code annotations like in this example:
import gurobipy as gp
m: gp.Model = gp.Model()
v: gp.Var = m.addVar()
m.optimize()
vval: float = v.X
% mypy example.py
Success: no issues found in 1 source file
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gurobipy-stubs-2.0.0.tar.gz
(14.3 kB
view details)
Built Distribution
File details
Details for the file gurobipy-stubs-2.0.0.tar.gz
.
File metadata
- Download URL: gurobipy-stubs-2.0.0.tar.gz
- Upload date:
- Size: 14.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64c388ce4f4ec1dd040a4f0119574c44af8fbc8ca56d8c01d3f4cebd593d36fe |
|
MD5 | db252e601e2dca86b41e657987c1a0e1 |
|
BLAKE2b-256 | fc320179eabc5730578bdf5924d00085bbc5dd71e2e824be619c36903d70a07c |
File details
Details for the file gurobipy_stubs-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: gurobipy_stubs-2.0.0-py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fe3444dff1cfe19a58a746d69202f3ed0151138f43a91d0bce3ec4e6cf00715 |
|
MD5 | 3f1cee29ef233a031bbe57ab0b7ee92f |
|
BLAKE2b-256 | 9c2b08ee5e6b5c98c5f38df58a5b3418021adc4e7ed44512b31f62ea0148670d |