refactor: add type hint for handler_class
Signed-off-by: HectorSin <kkang15634@ajou.ac.kr>
This commit is contained in:
parent
f73457ef72
commit
ebf2aaaa5c
1 changed files with 3 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue