Skip to content
Snippets Groups Projects
Commit 3a884602a664 authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

:shirt: type hint

parent a89da5a6e3eb
No related branches found
No related tags found
1 merge request!206🚑 Odoo scripts version number fix for editable installs
...@@ -1396,7 +1396,7 @@ ...@@ -1396,7 +1396,7 @@
return int(exit_code) return int(exit_code)
def find_free_port(): def find_free_port() -> int:
with closing(socket.socket(socket.AF_INET, socket.SOCK_STREAM)) as s: with closing(socket.socket(socket.AF_INET, socket.SOCK_STREAM)) as s:
s.bind(("", 0)) s.bind(("", 0))
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment