Revert "add signatures to calling code"

This reverts commit 441e279f6d.

Pytype does catch the mentioned error without the extra annotations.
This commit is contained in:
Damien Elmes 2019-12-19 11:39:40 +10:00
parent 441e279f6d
commit 2155e93bad
2 changed files with 3 additions and 3 deletions

View file

@ -41,7 +41,7 @@ class AnkiQt(QMainWindow):
self.col: Optional[_Collection] = None
aqt.mw = self
self.app = app
self.pm: ProfileManager = profileManager
self.pm = profileManager
# init rest of app
self.safeMode = self.app.queryKeyboardModifiers() & Qt.ShiftModifier
try:

View file

@ -216,11 +216,11 @@ Not currently enabled; click the sync button in the main window to enable."""))
# Basic & Advanced Options
######################################################################
def setupOptions(self) -> None:
def setupOptions(self):
self.form.pastePNG.setChecked(self.prof.get("pastePNG", False))
self.form.uiScale.setValue(self.mw.pm.uiScale()*100)
def updateOptions(self) -> None:
def updateOptions(self):
self.prof['pastePNG'] = self.form.pastePNG.isChecked()
newScale = self.form.uiScale.value()/100
if newScale != self.mw.pm.uiScale():