refactor: add type hint for handler_class

Signed-off-by: HectorSin <kkang15634@ajou.ac.kr>
This commit is contained in:
HectorSin 2026-01-10 20:58:08 +09:00
parent f73457ef72
commit ebf2aaaa5c

View file

@ -141,7 +141,9 @@ def embed_logo(p, layout_scale, logo_alpha, position):
def start_visualization_server(
host: str = "0.0.0.0",
port: int = 8001,
handler_class=http.server.SimpleHTTPRequestHandler,
handler_class: type[
http.server.SimpleHTTPRequestHandler
] = http.server.SimpleHTTPRequestHandler,
):
"""
Spin up a simple HTTP server in a background thread to serve files.