From bf29fb8e8348e33cca7858b434659be8dfc63587 Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Sun, 4 Oct 2020 22:42:28 +0200 Subject: [PATCH] Make icon Optional explicitly in function signature --- qt/aqt/editor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qt/aqt/editor.py b/qt/aqt/editor.py index 8e27fe45f..268240326 100644 --- a/qt/aqt/editor.py +++ b/qt/aqt/editor.py @@ -216,7 +216,7 @@ class Editor: def addButton( self, - icon: str, + icon: Optional[str], cmd: str, func: Callable[["Editor"], None], tip: str = "", @@ -250,7 +250,7 @@ class Editor: def _addButton( self, - icon: str, + icon: Optional[str], cmd: str, tip: str = "", label: str = "",