Merge pull request #428 from Arthur-Milchior/unusedOptional
"unused" variable become optional.
This commit is contained in:
commit
f260cfa07e
@ -89,7 +89,7 @@ class AddCards(QDialog):
|
||||
def setAndFocusNote(self, note: Note) -> None:
|
||||
self.editor.setNote(note, focusTo=0)
|
||||
|
||||
def onModelChange(self, unused) -> None:
|
||||
def onModelChange(self, unused=None) -> None:
|
||||
oldNote = self.editor.note
|
||||
note = self.mw.col.newNote()
|
||||
self.previousNote = None
|
||||
|
@ -66,7 +66,7 @@ class DeckChooser(QHBoxLayout):
|
||||
def cleanup(self) -> None:
|
||||
gui_hooks.current_note_type_did_change.remove(self.onModelChangeNew)
|
||||
|
||||
def onModelChangeNew(self, unused):
|
||||
def onModelChangeNew(self, unused=None):
|
||||
self.onModelChange()
|
||||
|
||||
def onModelChange(self):
|
||||
|
Loading…
Reference in New Issue
Block a user