coin-or / python-mip

Python-MIP: collection of Python tools for the modeling and solution of Mixed-Integer Linear programs
Eclipse Public License 2.0
513 stars 88 forks source link

Add py.typed marker #362

Open clo-vis opened 7 months ago

clo-vis commented 7 months ago

It seems MIP is fully typed. It does not include, however, the py.typed marker file, which is required to be PEP 561-compliant, and allow users of the library to type-check their code against the type annotations.

rschwarz commented 7 months ago

I think that before this adds value, some of the annotations need fixing, eg replacing numbers.Real with float. We found that using mypy-generated stubs yield a lot of warnings (from mypy).