Skip to main content

Python API tuplelist type hinting

Answered

Comments

4 comments

  • Official comment
    Simranjit Kaur
    Gurobi Staff Gurobi Staff
    This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?.
  • Michael Lindahl
    Gurobi-versary
    First Comment

    Great idea Niels-Christian Bagger 

    I always have to go back to where I initialized the list to remember which order I used for the indices when creating the TupleList.

    0
  • Maliheh Aramon
    Gurobi Staff Gurobi Staff

    Hi Niels-Christian and Michael, 

    We recently released the gurobipy-stubs package that provides type hinting for gurobipy. You can install it in your python environment through pip.

    We hope you will consider using these stubs. Please let us know if you encounter any issues. 

    Best regards,

    Maliheh

    0
  • Niels-Christian Bagger
    Gurobi-versary
    First Comment
    First Question

    Thank you for that. I will definitely take a look at this

    0

Post is closed for comments.