Skip to content

Commit 56a4a63

Browse files
committed
Dispatcher type doesn't work within itself.
1 parent 1bcd3e6 commit 56a4a63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

azure_functions_worker/dispatcher.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class DispatcherMeta(type):
3838
__current_dispatcher__ = None
3939

4040
@property
41-
def current(mcls) -> Dispatcher:
41+
def current(mcls):
4242
disp = mcls.__current_dispatcher__
4343
if disp is None:
4444
raise RuntimeError('no currently running Dispatcher is found')
@@ -93,7 +93,7 @@ def load_bindings() -> Dict[Any, Any]:
9393

9494
@classmethod
9595
async def connect(cls, host: str, port: int, worker_id: str, request_id: str,
96-
connect_timeout: float) -> Dispatcher:
96+
connect_timeout: float):
9797
loop = asyncio.events.get_event_loop()
9898
disp = cls(loop, host, port, worker_id, request_id, connect_timeout)
9999
disp._grpc_thread.start()

0 commit comments

Comments
 (0)