Skip to content

Commit

Permalink
Satisfy ruff reqs (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnzl-777 committed Jul 29, 2024
1 parent fab7081 commit 5859996
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_lattice.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def test_addlocs_on_square():
lattice1 = lattice.add_position([(9, 6), (4, 4)])

# type(lattice)
assert type(lattice1) == ir.location.ListOfLocations
assert type(lattice1) is ir.location.ListOfLocations

positions1 = set(map(lambda info: info.position, lattice1.enumerate()))
positions_expected1 = set(cast([(0, 0), (1, 0), (0, 1), (1, 1), (9, 6), (4, 4)]))
Expand All @@ -94,7 +94,7 @@ def test_addlocs_filling_options():
lattice = lattice.add_position([(9, 6), (4, 4)], filling=[False, True])

# type(lattice)
assert type(lattice) == ir.location.ListOfLocations
assert type(lattice) is ir.location.ListOfLocations

for info in lattice.enumerate():
if info.position == cast((9, 6)):
Expand Down

0 comments on commit 5859996

Please sign in to comment.