mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-08-08 23:10:15 -03:00
fix(types): resolve pre-existing basedpyright errors in tests
Fix ~790 basedpyright errors across the test suite: - Type stub subclasses of real production classes with super().__init__() - Add missing generic type arguments and Dict[str, Any] annotations - Add None guards before subscript/member access - Adapt tests to production API changes (removed dead handlers, PersistentModelCache.get_default, _i18n_filter_added location)
This commit is contained in:
@@ -32,7 +32,7 @@ def _parse_directives(header: str) -> dict[str, list[str]]:
|
||||
|
||||
async def _invoke_middleware(
|
||||
path: str, response: web.Response, csp_header: str | None = DEFAULT_CSP
|
||||
) -> web.Response:
|
||||
) -> web.StreamResponse:
|
||||
async def handler(_request: web.Request) -> web.Response:
|
||||
if csp_header is not None:
|
||||
response.headers["Content-Security-Policy"] = csp_header
|
||||
|
||||
Reference in New Issue
Block a user