Skip to content

Commit

Permalink
Black linting
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieulemieux committed Mar 1, 2024
1 parent f37e4ad commit f4f0301
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions graphkb/match.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Functions which return Variants from GraphKB which match some input variant definition
"""

from typing import Dict, List, Optional, Set, Union, cast

from . import GraphKBConnection
Expand Down Expand Up @@ -303,9 +304,11 @@ def compare_positional_variants(
if not positions_overlap(
cast(BasicPosition, variant["break1Start"]),
cast(BasicPosition, reference_variant["break1Start"]),
None
if "break1End" not in reference_variant
else cast(BasicPosition, reference_variant["break1End"]),
(
None
if "break1End" not in reference_variant
else cast(BasicPosition, reference_variant["break1End"])
),
):
return False

Expand All @@ -318,9 +321,11 @@ def compare_positional_variants(
if not positions_overlap(
cast(BasicPosition, variant["break2Start"]),
cast(BasicPosition, reference_variant["break2Start"]),
None
if "break2End" not in reference_variant
else cast(BasicPosition, reference_variant["break2End"]),
(
None
if "break2End" not in reference_variant
else cast(BasicPosition, reference_variant["break2End"])
),
):
return False

Expand Down

0 comments on commit f4f0301

Please sign in to comment.