File tree 1 file changed +11
-4
lines changed
1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -55,11 +55,18 @@ class pyqtSignal:
55
55
56
56
def __init__(self, *types: typing.Any, name: str = ...) -> None: ...
57
57
58
- @typing.overload
59
- def __get__(self, instance: None, owner: typing.Type["QObject"]) -> "pyqtSignal": ...
58
+ if sys.version_info >= (3, 10):
59
+ @typing.overload
60
+ def __get__(self, instance: None, owner: typing.Optional[typing.Type["QObject"]] = ...) -> "pyqtSignal": ...
60
61
61
- @typing.overload
62
- def __get__(self, instance: "QObject", owner: typing.Type["QObject"]) -> pyqtBoundSignal: ...
62
+ @typing.overload
63
+ def __get__(self, instance: "QObject", owner: typing.Optional[typing.Type["QObject"]] = ...) -> pyqtBoundSignal: ...
64
+ else:
65
+ @typing.overload
66
+ def __get__(self, instance: None, owner: typing.Type["QObject"]) -> "pyqtSignal": ...
67
+
68
+ @typing.overload
69
+ def __get__(self, instance: "QObject", owner: typing.Type["QObject"]) -> pyqtBoundSignal: ...
63
70
64
71
65
72
# Convenient type aliases.
You can’t perform that action at this time.
0 commit comments