add download_url option for file attachment #102
lint.yml
on: pull_request
precommit
34s
pyright
13s
Matrix: unit tests
Annotations
4 errors
pyright:
src/fastapi_poe/base.py#L153
Argument of type "dict[str, tuple[Unknown | None, Unknown | None]]" cannot be assigned to parameter "files" of type "RequestFiles | None" in function "__init__"
Type "dict[str, tuple[Unknown | None, Unknown | None]]" cannot be assigned to type "RequestFiles | None"
"dict[str, tuple[Unknown | None, Unknown | None]]" is incompatible with "Mapping[str, FileTypes]"
Type parameter "_VT_co@Mapping" is covariant, but "tuple[Unknown | None, Unknown | None]" is not a subtype of "FileTypes"
Type "tuple[Unknown | None, Unknown | None]" cannot be assigned to type "FileTypes"
"tuple[Unknown | None, Unknown | None]" is incompatible with "IO[bytes]"
"tuple[Unknown | None, Unknown | None]" is incompatible with "bytes"
"tuple[Unknown | None, Unknown | None]" is incompatible with "str"
"tuple[Unknown | None, Unknown | None]" is incompatible with "Tuple[str | None, FileContent]"
... (reportGeneralTypeIssues)
|
pyright:
src/fastapi_poe/base.py#L345
Argument of type "(request: Request, ex: HTTPException) -> None" cannot be assigned to parameter "handler" of type "ExceptionHandler" in function "add_exception_handler"
Type "(request: Request, ex: HTTPException) -> None" cannot be assigned to type "ExceptionHandler"
Type "(request: Request, ex: HTTPException) -> None" cannot be assigned to type "HTTPExceptionHandler"
Parameter 2: type "Exception" cannot be assigned to type "HTTPException"
"Exception" is incompatible with "HTTPException"
Function return type "None" is incompatible with type "Response | Awaitable[Response]"
Type "None" cannot be assigned to type "Response | Awaitable[Response]"
"None" is incompatible with "Response"
"None" is incompatible with protocol "Awaitable[Response]"
... (reportGeneralTypeIssues)
|
pyright
2 errors
|
precommit
Process completed with exit code 1.
|