Skip to content

Commit

Permalink
Merge pull request #77 from altendky/typing.Callable
Browse files Browse the repository at this point in the history
Add missing typing. for Callable
  • Loading branch information
altendky committed Sep 23, 2020
2 parents a878cb8 + 7b4f8ab commit b6bfe6b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions PyQt5-stubs/QtCore.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -7272,7 +7272,7 @@ class QRunnable(sip.wrapper):
def __init__(self, a0: 'QRunnable') -> None: ...

@staticmethod
def create(functionToRun: Callable[[], None]) -> 'QRunnable': ...
def create(functionToRun: typing.Callable[[], None]) -> 'QRunnable': ...
def setAutoDelete(self, _autoDelete: bool) -> None: ...
def autoDelete(self) -> bool: ...
def run(self) -> None: ...
Expand Down Expand Up @@ -8271,11 +8271,11 @@ class QThreadPool(QObject):
@typing.overload
def tryStart(self, runnable: QRunnable) -> bool: ...
@typing.overload
def tryStart(self, functionToRun: Callable[[], None]) -> bool: ...
def tryStart(self, functionToRun: typing.Callable[[], None]) -> bool: ...
@typing.overload
def start(self, runnable: QRunnable, priority: int = ...) -> None: ...
@typing.overload
def start(self, functionToRun: Callable[[], None], priority: int = ...) -> None: ...
def start(self, functionToRun: typing.Callable[[], None], priority: int = ...) -> None: ...
@staticmethod
def globalInstance() -> 'QThreadPool': ...

Expand Down

0 comments on commit b6bfe6b

Please sign in to comment.