Skip to content

Commit 2bac3d7

Browse files
committed
Remove redundant cast to process
1 parent 1b85f5f commit 2bac3d7

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/pytest_flask/live_server.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,8 @@ def start(self) -> None:
6363
def worker(app: _SupportsFlaskAppRun, host: str, port: int) -> None:
6464
app.run(host=host, port=port, use_reloader=False, threaded=True)
6565

66-
self._process = cast(
67-
Process,
68-
multiprocessing.Process(
69-
target=worker, args=(self.app, self.host, self.port)
70-
),
66+
self._process = multiprocessing.Process(
67+
target=worker, args=(self.app, self.host, self.port)
7168
)
7269
self._process.daemon = True
7370
self._process.start()

0 commit comments

Comments
 (0)