We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1102449 commit 03f68e7Copy full SHA for 03f68e7
src/pytestqt/qtbot.py
@@ -1,7 +1,7 @@
1
import contextlib
2
import weakref
3
import warnings
4
-from typing import TYPE_CHECKING, Callable, Optional
+from typing import TYPE_CHECKING, Callable, Optional, Any
5
6
from pytestqt.exceptions import TimeoutError, ScreenshotError
7
from pytestqt.qt_compat import qt_api
@@ -15,9 +15,11 @@
15
)
16
17
if TYPE_CHECKING:
18
- from qtpy.QtWidgets import QWidget
+ # Type hint objects until figuring out how to import across qt
19
+ # versions possibly using 'qtpy' library.
20
+ QWidget = Any
21
-BeforeCloseFunc = Callable[["QWidget"], None]
22
+BeforeCloseFunc = Callable[[QWidget], None]
23
24
25
def _parse_ini_boolean(value):
0 commit comments