From fba47b040dfca978c6685b81bac60ee2f7604b4d Mon Sep 17 00:00:00 2001 From: Konstantin Ryabitsev Date: Mon, 7 Dec 2020 10:12:34 -0500 Subject: Silence some pycharm warnings PyCharm is warning that the list item can be None, but we already check for that, so silence the warning. Signed-off-by: Konstantin Ryabitsev --- b4/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/b4/__init__.py b/b4/__init__.py index 06c95db..28d22a6 100644 --- a/b4/__init__.py +++ b/b4/__init__.py @@ -454,8 +454,10 @@ class LoreSeries: self.patches[lmsg.counter] = lmsg self.complete = not (None in self.patches[1:]) if self.patches[0] is not None: + # noinspection PyUnresolvedReferences self.subject = self.patches[0].subject elif self.patches[1] is not None: + # noinspection PyUnresolvedReferences self.subject = self.patches[1].subject def get_slug(self, extended=False): @@ -749,6 +751,7 @@ class LoreSeries: return start_commit, end_commit def save_cover(self, outfile): + # noinspection PyUnresolvedReferences cover_msg = self.patches[0].get_am_message(add_trailers=False, trailer_order=None) with open(outfile, 'w') as fh: fh.write(cover_msg.as_string(policy=emlpolicy)) -- cgit v1.2.3