cog-imperial / entmoot

Multiobjective black-box optimization using gradient-boosted trees
https://entmoot.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
56 stars 12 forks source link

Improve type hinting throughout ENTMOOT #41

Closed TobyBoyne closed 4 months ago

TobyBoyne commented 4 months ago

Many key parts of the codebase were missing typehints, or failing pyright checks. There were some inconsistencies with types found over the course of this PR (including #40). These sort of issues lead to problems such as #29.

This PR implements more type annotations, making it easier to catch bugs early and improving the dev experience when using ENTMOOT.

This PR also includes a pin to the pyomo version number to 6.7.0 to fix an issue with the pipeline tests failing.