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
540 stars 95 forks source link

Add py.typed marker #362

Open clo-vis opened 1 year ago

clo-vis commented 1 year 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 1 year 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).