Fix (innocuous) mypy warning
This commit is contained in:
parent
9cbdccb98b
commit
1502b10701
@ -1,5 +1,5 @@
|
|||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
from typing import Callable, cast, List, Optional, TYPE_CHECKING
|
from typing import Callable, cast, List, Optional, overload, TYPE_CHECKING
|
||||||
|
|
||||||
from PyQt6.QtCore import (
|
from PyQt6.QtCore import (
|
||||||
QEvent,
|
QEvent,
|
||||||
@ -255,12 +255,20 @@ class PlaylistTab(QTableView):
|
|||||||
|
|
||||||
event.accept()
|
event.accept()
|
||||||
|
|
||||||
|
@overload
|
||||||
|
def edit(self, index: QModelIndex) -> None:
|
||||||
|
...
|
||||||
|
|
||||||
|
@overload
|
||||||
def edit(
|
def edit(
|
||||||
self,
|
self,
|
||||||
index: QModelIndex,
|
index: QModelIndex,
|
||||||
trigger: QAbstractItemView.EditTrigger,
|
trigger: QAbstractItemView.EditTrigger,
|
||||||
event: Optional[QEvent],
|
event: Optional[QEvent]
|
||||||
) -> bool:
|
) -> bool:
|
||||||
|
...
|
||||||
|
|
||||||
|
def edit(self, index, trigger, event):
|
||||||
"""
|
"""
|
||||||
Override QAbstractItemView.edit to catch when editing starts
|
Override QAbstractItemView.edit to catch when editing starts
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user