Skip to content

Commit 110633c

Browse files
committed
style: fix style
1 parent 3719f16 commit 110633c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

moPepGen/cli/call_variant_peptide.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,13 +323,13 @@ def gather_data_for_call_variant(self, tx_id:str, pool:seqvar.VariantRecordPoolO
323323
except ValueError:
324324
if self.args.skip_failed:
325325
self.tally.n_transcripts_invalid += 1
326-
return
326+
return None
327327
raise
328328
if variant_series.is_empty():
329-
return
329+
return None
330330
if self.noncanonical_transcripts and \
331331
not variant_series.has_any_noncanonical_transcripts():
332-
return
332+
return None
333333
tx_ids += variant_series.get_additional_transcripts()
334334

335335
gene_seqs = {}
@@ -439,6 +439,7 @@ def call_variant_peptides_wrapper(tx_id:str,
439439
**kwargs
440440
) -> CallVariantOutput:
441441
""" wrapper function to call variant peptides """
442+
# pylint: disable=W0702
442443
logger = get_logger()
443444
peptide_anno:Dict[Seq, Dict[str, AnnotatedPeptideLabel]] = {}
444445

0 commit comments

Comments
 (0)