Skip to content

Commit

Permalink
Fixing more issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jezsadler committed Dec 10, 2024
1 parent 7269355 commit c58d370
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/omlt/base/constraint.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def __init__(
self.name = None
self.format = lang

def keys(self, *, sort=False): # noqa: ARG002
def keys(self, sort=False): # noqa: ARG002, FBT002
yield from self._index_set


Expand Down
2 changes: 1 addition & 1 deletion src/omlt/base/julia.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ def __init__(self, *indexes: Any, **kwargs: Any):
self.format = "jump"
self._jumpcons = {idx: None for idx in self._index_set[0]}

def keys(self, *, sort=False): # noqa: ARG002
def keys(self, sort=False): # noqa: ARG002, FBT002
yield from self._index_set

Check warning on line 452 in src/omlt/base/julia.py

View check run for this annotation

Codecov / codecov/patch

src/omlt/base/julia.py#L452

Added line #L452 was not covered by tests

def __setitem__(self, label, item):
Expand Down

0 comments on commit c58d370

Please sign in to comment.