Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/encode/uvicorn
/ _normalize_dirs
Function
_normalize_dirs
uvicorn/config.py:170–175 ·
view source on GitHub ↗
(dirs: list[str] | str | None)
Source
from the content-addressed store, hash-verified
168
169
170
def
_normalize_dirs(dirs: list[str] | str | None) -> list[str]:
171
if
dirs is None:
172
return
[]
173
if
isinstance(dirs, str):
174
return
[dirs]
175
return
list(set(dirs))
176
177
178
class
Config:
Callers
1
__init__
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected