mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Make icon Optional explicitly in function signature
This commit is contained in:
parent
30d1d57c78
commit
bf29fb8e83
1 changed files with 2 additions and 2 deletions
|
@ -216,7 +216,7 @@ class Editor:
|
||||||
|
|
||||||
def addButton(
|
def addButton(
|
||||||
self,
|
self,
|
||||||
icon: str,
|
icon: Optional[str],
|
||||||
cmd: str,
|
cmd: str,
|
||||||
func: Callable[["Editor"], None],
|
func: Callable[["Editor"], None],
|
||||||
tip: str = "",
|
tip: str = "",
|
||||||
|
@ -250,7 +250,7 @@ class Editor:
|
||||||
|
|
||||||
def _addButton(
|
def _addButton(
|
||||||
self,
|
self,
|
||||||
icon: str,
|
icon: Optional[str],
|
||||||
cmd: str,
|
cmd: str,
|
||||||
tip: str = "",
|
tip: str = "",
|
||||||
label: str = "",
|
label: str = "",
|
||||||
|
|
Loading…
Reference in a new issue