Skip to content

Improve type hinting throughout ENTMOOT#41

Merged
TobyBoyne merged 5 commits intocog-imperial:masterfrom
TobyBoyne:typing
Jul 3, 2024
Merged

Improve type hinting throughout ENTMOOT#41
TobyBoyne merged 5 commits intocog-imperial:masterfrom
TobyBoyne:typing

Conversation

@TobyBoyne
Copy link
Collaborator

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.

@TobyBoyne TobyBoyne merged commit 835694e into cog-imperial:master Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant