Skip to content

Commit

Permalink
Merge pull request #681 from ecalifornica/fix-linter-error-F841
Browse files Browse the repository at this point in the history
Remove unused variables
  • Loading branch information
reece authored Sep 10, 2023
2 parents 697b32b + 0f6aac9 commit a5aecd1
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion src/hgvs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
# TODO: match other valid release tags, like .post\d+
if re.match(r"^\d+\.\d+\.\d+$", __version__) is not None:
_is_released_version = True
except pkg_resources.DistributionNotFound as e:
except pkg_resources.DistributionNotFound:
warnings.warn("can't get __version__ because %s package isn't installed" % __package__, Warning)
__version__ = None

Expand Down
3 changes: 0 additions & 3 deletions src/hgvs/alignmentmapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,6 @@ def pos_c_to_n(pos):
raise HGVSInvalidIntervalError(f"c.{pos} coordinate is out of bounds")
return hgvs.location.BaseOffsetPosition(base=n, offset=pos.offset, datum=Datum.SEQ_START)

n_start = pos_c_to_n(c_interval.start)
n_end = pos_c_to_n(c_interval.end)

n_interval = hgvs.location.BaseOffsetInterval(
start=pos_c_to_n(c_interval.start), end=pos_c_to_n(c_interval.end), uncertain=c_interval.uncertain
)
Expand Down
2 changes: 0 additions & 2 deletions src/hgvs/utils/norm.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,6 @@ def normalize_alleles_right(ref, start, stop, alleles, bound, ref_step, shuffle=

normalized_alleles = namedtuple("shuffled_alleles", "start stop alleles")

chrom_stop = len(ref)

if len(alleles) < 2:
return normalized_alleles(start, stop, alleles)

Expand Down
1 change: 0 additions & 1 deletion src/hgvs/variantmapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ def t_to_g(self, var_t, alt_ac, alt_aln_method=hgvs.global_config.mapping.alt_al
if self._validator:
self._validator.validate(var_t)
var_t.fill_ref(self.hdp)
mapper = self._fetch_AlignmentMapper(tx_ac=var_t.ac, alt_ac=alt_ac, alt_aln_method=alt_aln_method)
if var_t.type == "c":
var_out = VariantMapper.c_to_g(self, var_c=var_t, alt_ac=alt_ac, alt_aln_method=alt_aln_method)
else:
Expand Down

0 comments on commit a5aecd1

Please sign in to comment.