Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Gurobi/gurobipy-stubs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gurobipy-stubs

This package is no longer maintained. gurobipy versions 11.0 and later will include type hints as part of the installation, so the stubs are no longer needed.

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.

Version Compatibility

  • Version 1.0 of this package provides type hints for gurobipy 9.x.
  • Version 2.0 of this package provides type hints for gurobipy 10.x.
  • For later versions of gurobipy, you should not install this package.

Example

With this type stubs package installed, static type checkers such as mypy will 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

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •