Skip to content

Conversation

@urbanophile
Copy link
Contributor

  • Add docstrings for .matrix() and .dict() methods
  • Add more detail to docstring for .dicts() method
  • Add basic usage examples
  • Add some type annotations

- Add docstrings for .matrix() and .dict() methods
- Add more detail to docstring for .dicts() method
- Add basic usage examples
Copy link
Collaborator

@pchtsp pchtsp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I left some minor comments on optional and union types

indexStart=[],
):
name: str,
indices: Iterable,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here indices should be optional to match the original definition. it's also the case for the dicts classmethod

index = indices[0]
indices = indices[1:]
d = {}
d: dict[Any, Any] = {}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess here you can do something like dict[Any, Union[dict, LpVariable]]

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.

2 participants