Skip to content

Commit

Permalink
style: appease mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyWesthead committed Jul 23, 2024
1 parent 06ede91 commit d81ec75
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gumpy/variantfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ def __init__(

# Get the filter attribute value
assert len(record.filter.items()) >= 0, "A record has more than 1 filter set!"
self.filter: str | None
self.filter: list[str] | None
if len(record.filter.items()) == 0:
self.filter = None
self.is_filter_pass = False
else:
self.filter = list(record.filter.keys())
self.filter = [str(x) for x in record.filter.keys()]
self.is_filter_pass = (
True
if len(self.filter) == 1 and record.filter.items()[0][0] == "PASS"
Expand Down Expand Up @@ -563,7 +563,7 @@ def __find_calls(self):
not record.is_filter_pass
):
# We only want to allow these through if the filter fail is MIN_FRS
if record.filter == "MIN_FRS":
if record.filter == ["MIN_FRS"]:
# Allow MIN_FRS
variant = record.ref
variant_type = "ref"
Expand Down

0 comments on commit d81ec75

Please sign in to comment.