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 58c1545 commit 3951f6fCopy full SHA for 3951f6f
src/pytestqt/qtbot.py
@@ -13,6 +13,7 @@
13
Any,
14
Self,
15
Type,
16
+ TypeAlias,
17
cast,
18
)
19
from pathlib import Path
@@ -33,10 +34,10 @@
33
34
35
# Type hint objects until figuring out how to import across qt
36
# versions possibly using 'qtpy' library.
-QWidget = Any
37
-SignalInstance = Any
38
-QRect = Any
39
-QKeySequence = Any
+QWidget: TypeAlias = Any
+SignalInstance: TypeAlias = Any
+QRect: TypeAlias = Any
40
+QKeySequence: TypeAlias = Any
41
42
if TYPE_CHECKING:
43
# Keep local import behavior the same.
0 commit comments