Skip to content

Commit

Permalink
Drop some type assertions
Browse files Browse the repository at this point in the history
As a consequence of improved inventories typing
  • Loading branch information
alecandido committed May 3, 2023
1 parent 3aaa52d commit 0224739
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/eko/io/struct.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,6 @@ def __iter__(self):
"""Iterate over keys (i.e. evolution points)."""
self.operators.sync()
for target in self.operators:
assert isinstance(target, Target)
yield target.ep

def items(self):
Expand All @@ -229,7 +228,6 @@ def items(self):
"""
for target in self.operators:
# recast to evolution point
assert isinstance(target, Target)
ep = target.ep

# auto-load
Expand Down

0 comments on commit 0224739

Please sign in to comment.