From 7969d3a9d90b1dab31c1d043096bbc85d21e6e6d Mon Sep 17 00:00:00 2001 From: Matt Harbison Date: Thu, 24 Sep 2020 20:29:15 -0400 Subject: [PATCH] typing: adjust placement of type comments for multi-line statements further With py3.6.9 or py3.7.5 and pytype 2020.9.16, this was getting flagged for me after 8d4381a39485. So lets keep both for now. --HG-- branch : stable --- tortoisehg/hgqt/guess.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tortoisehg/hgqt/guess.py b/tortoisehg/hgqt/guess.py index 2ffef4f64..8b89f0cd4 100644 --- a/tortoisehg/hgqt/guess.py +++ b/tortoisehg/hgqt/guess.py @@ -241,11 +241,11 @@ class DetectRenameDialog(QDialog): # TODO: better to use data(role) instead ulist = [it.orig # pytype: disable=attribute-error - for it in self.unrevlist.selectedItems()] + for it in self.unrevlist.selectedItems()] # pytype: disable=attribute-error if not ulist: # When no files are selected, look for all files ulist = [self.unrevlist.item(n).orig # pytype: disable=attribute-error - for n in range(self.unrevlist.count())] + for n in range(self.unrevlist.count())] # pytype: disable=attribute-error if not ulist: QMessageBox.information(self, _('No files to find'), -- GitLab