Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewMckee4 committed Jan 30, 2025
1 parent e17bbd1 commit 17a5d49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/kfactory/ports.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def clear(self) -> None:

def __eq__(self, other: object) -> bool:
"""Support for `ports1 == ports2` comparisons."""
if isinstance(other, Iterable):
if isinstance(other, Sequence):
if len(self._bases) != len(other):
return False
return all(b1 == b2 for b1, b2 in zip(iter(self), other, strict=False))
Expand Down
3 changes: 3 additions & 0 deletions tests/test_cell.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,9 @@ def compare_kcell_fields(

assert compare_kcell_fields(c_base_kcell, cell_base_kcell)

c.delete()
cell.delete()


if __name__ == "__main__":
pytest.main([__file__, "-v"])

0 comments on commit 17a5d49

Please sign in to comment.