Make icon Optional explicitly in function signature

This commit is contained in:
Henrik Giesel 2020-10-04 22:42:28 +02:00
parent 30d1d57c78
commit bf29fb8e83

View file

@ -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 = "",