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(
|
||||
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 = "",
|
||||
|
|
Loading…
Reference in a new issue