-
Notifications
You must be signed in to change notification settings - Fork 561
Open
Labels
enhancementpyomo7This is a label for issues targeted for the next major release.This is a label for issues targeted for the next major release.
Description
Summary
As part of Pyomo 7 we should make an effort to improve type hints across Pyomo.
Rationale
Typing would go a long ways toward help connect users to documentation.
Description
We should strive to provide type hints to all APIs used in The Book examples. This includes:
- adding type hints for the core Pyomo components
- ...
Additionally, we are currently very inconsistent in how we use of type hints across Pyomo. Some if it is no longer needed (now that we are only supporting Python 3.10+):
- remove use of
typing.Unionand replace with (Python 3.10+)| - remove use of
typing.List,typing.Tuple, etc and replace withlist.tuple, etc. (Python 3.9+)
Additional information
blnicho and eminyousknn-takumasa
Metadata
Metadata
Assignees
Labels
enhancementpyomo7This is a label for issues targeted for the next major release.This is a label for issues targeted for the next major release.