Skip to content

Commit

Permalink
fix untyped def issues in aqt/mediasrv.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dae committed Aug 2, 2020
1 parent 5c176b2 commit c1ecb7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions qt/aqt/mediasrv.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def run(self):
if devMode:
print(
"Serving on http://%s:%s"
% (self.server.effective_host, self.server.effective_port)
% (self.server.effective_host, self.server.effective_port) # type: ignore
)

self._ready.set()
Expand All @@ -76,15 +76,15 @@ def run(self):

def shutdown(self):
self.is_shutdown = True
sockets = list(self.server._map.values())
sockets = list(self.server._map.values()) # type: ignore
for socket in sockets:
socket.handle_close()
# https://github.com/Pylons/webtest/blob/4b8a3ebf984185ff4fefb31b4d0cf82682e1fcf7/webtest/http.py#L93-L104
self.server.task_dispatcher.shutdown()

def getPort(self):
self._ready.wait()
return int(self.server.effective_port)
return int(self.server.effective_port) # type: ignore


@app.route("/<path:pathin>", methods=["GET", "POST"])
Expand Down

0 comments on commit c1ecb7b

Please sign in to comment.