resolve which paths can be None

This commit is contained in:
Lincoln Stein
2023-11-26 18:35:27 -05:00
committed by psychedelicious
parent b7293d638b
commit 250ee4b11c
5 changed files with 35 additions and 30 deletions

View File

@ -232,7 +232,6 @@ app.mount("/locales", StaticFiles(directory=Path(web_root_path, "dist/locales/")
def invoke_api() -> None:
def find_port(port: int) -> int:
"""Find a port not in use starting at given port"""
# Taken from https://waylonwalker.com/python-find-available-port/, thanks Waylon!