Commit d8f4ef25 authored by Yuya Nishihara's avatar Yuya Nishihara

typing: adjust place of type comments for multi-line statements

Maybe some logic changed in pytype?

--HG--
branch : stable
parent f6411338db3b
Pipeline #10342 passed with stage
in 6 minutes and 29 seconds
......@@ -589,10 +589,7 @@ class FileDiffDialog(_AbstractFileDialog):
self.timer.timeout.connect(self.idle_fill_files)
def setupModels(self):
self.filedata = {
'left': [],
'right': [],
} # type: Dict[Text, List[pycompat.unicode]]
self.filedata = {'left': [], 'right': []} # type: Dict[Text, List[pycompat.unicode]]
self._invbarchanged = False
self.filerevmodel = repomodel.FileRevModel(
self._repoagent, self.filename, parent=self)
......
......@@ -240,12 +240,12 @@ class DetectRenameDialog(QDialog):
return
# TODO: better to use data(role) instead
ulist = [it.orig
for it in self.unrevlist.selectedItems()] # pytype: disable=attribute-error
ulist = [it.orig # pytype: disable=attribute-error
for it in self.unrevlist.selectedItems()]
if not ulist:
# When no files are selected, look for all files
ulist = [self.unrevlist.item(n).orig
for n in range(self.unrevlist.count())] # pytype: disable=attribute-error
ulist = [self.unrevlist.item(n).orig # pytype: disable=attribute-error
for n in range(self.unrevlist.count())]
if not ulist:
QMessageBox.information(self, _('No files to find'),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment