Skip to content

Bump pyright

Bump pyright #23

Triggered via push August 14, 2024 06:42
Status Failure
Total duration 28s
Artifacts

build.yml

on: push
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

30 errors
build (3.9): build/lib/filesender/api.py#L353
Argument of type "(token: str, file_id: int, out_dir: Path, key: bytes | None = None, algorithm: str | None = None) -> Coroutine[Any, Any, None]" cannot be assigned to parameter "func" of type "SyncStarmapCallable[T@starmap, U@starmap] | AsyncStarmapCallable[T@starmap, U@starmap]" in function "pipe"   Type "(token: str, file_id: int, out_dir: Path, key: bytes | None = None, algorithm: str | None = None) -> Coroutine[Any, Any, None]" is incompatible with type "SyncStarmapCallable[T@starmap, U@starmap] | AsyncStarmapCallable[T@starmap, U@starmap]"     Type "(token: str, file_id: int, out_dir: Path, key: bytes | None = None, algorithm: str | None = None) -> Coroutine[Any, Any, None]" is incompatible with type "(arg: T@starmap, /, *args: T@starmap) -> Awaitable[U@starmap]"       Parameter 3: type "T@starmap" is incompatible with type "Path"         "object*" is incompatible with "Path"       Parameter 4: type "T@starmap" is incompatible with type "bytes | None"         Type "T@starmap" is incompatible with type "bytes | None"           "object*" is incompatible with "bytes"           "object*" is incompatible with "None" ... (reportArgumentType)
build (3.9): build/lib/filesender/api.py#L429
Return type of async generator function must be compatible with "AsyncGenerator[tuple[File, Path], Any]"   "mime_type" is missing from "File"   "cid" is missing from "File" (reportReturnType)
build (3.9): build/lib/filesender/api.py#L432
Argument of type "(file_info: File, path: Path) -> Coroutine[Any, Any, None]" cannot be assigned to parameter "func" of type "SyncStarmapCallable[T@starmap, U@starmap] | AsyncStarmapCallable[T@starmap, U@starmap]" in function "__call__"   Type "(file_info: File, path: Path) -> Coroutine[Any, Any, None]" is incompatible with type "SyncStarmapCallable[File | Path, U@starmap] | AsyncStarmapCallable[File | Path, U@starmap]"     Type "(file_info: File, path: Path) -> Coroutine[Any, Any, None]" is incompatible with type "(arg: File | Path, /, *args: File | Path) -> Awaitable[U@starmap]"       Parameter 1: type "File | Path" is incompatible with type "File"         Type "File | Path" is incompatible with type "File"           "id" is missing from "File"           "transfer_id" is missing from "File"           "uid" is missing from "File"           "sha1" is missing from "File" ... (reportArgumentType)
build (3.9): filesender/api.py#L353
Argument of type "(token: str, file_id: int, out_dir: Path, key: bytes | None = None, algorithm: str | None = None) -> Coroutine[Any, Any, None]" cannot be assigned to parameter "func" of type "SyncStarmapCallable[T@starmap, U@starmap] | AsyncStarmapCallable[T@starmap, U@starmap]" in function "pipe"   Type "(token: str, file_id: int, out_dir: Path, key: bytes | None = None, algorithm: str | None = None) -> Coroutine[Any, Any, None]" is incompatible with type "SyncStarmapCallable[T@starmap, U@starmap] | AsyncStarmapCallable[T@starmap, U@starmap]"     Type "(token: str, file_id: int, out_dir: Path, key: bytes | None = None, algorithm: str | None = None) -> Coroutine[Any, Any, None]" is incompatible with type "(arg: T@starmap, /, *args: T@starmap) -> Awaitable[U@starmap]"       Parameter 3: type "T@starmap" is incompatible with type "Path"         "object*" is incompatible with "Path"       Parameter 4: type "T@starmap" is incompatible with type "bytes | None"         Type "T@starmap" is incompatible with type "bytes | None"           "object*" is incompatible with "bytes"           "object*" is incompatible with "None" ... (reportArgumentType)
build (3.9): filesender/api.py#L429
Return type of async generator function must be compatible with "AsyncGenerator[tuple[File, Path], Any]"   "mime_type" is missing from "File"   "cid" is missing from "File" (reportReturnType)
build (3.9): filesender/api.py#L432
Argument of type "(file_info: File, path: Path) -> Coroutine[Any, Any, None]" cannot be assigned to parameter "func" of type "SyncStarmapCallable[T@starmap, U@starmap] | AsyncStarmapCallable[T@starmap, U@starmap]" in function "__call__"   Type "(file_info: File, path: Path) -> Coroutine[Any, Any, None]" is incompatible with type "SyncStarmapCallable[File | Path, U@starmap] | AsyncStarmapCallable[File | Path, U@starmap]"     Type "(file_info: File, path: Path) -> Coroutine[Any, Any, None]" is incompatible with type "(arg: File | Path, /, *args: File | Path) -> Awaitable[U@starmap]"       Parameter 1: type "File | Path" is incompatible with type "File"         Type "File | Path" is incompatible with type "File"           "id" is missing from "File"           "transfer_id" is missing from "File"           "uid" is missing from "File"           "sha1" is missing from "File" ... (reportArgumentType)
build (3.9)
6 errors
build (3.11): build/lib/filesender/api.py#L353
Argument of type "(token: str, file_id: int, out_dir: Path, key: bytes | None = None, algorithm: str | None = None) -> Coroutine[Any, Any, None]" cannot be assigned to parameter "func" of type "SyncStarmapCallable[T@starmap, U@starmap] | AsyncStarmapCallable[T@starmap, U@starmap]" in function "pipe"   Type "(token: str, file_id: int, out_dir: Path, key: bytes | None = None, algorithm: str | None = None) -> Coroutine[Any, Any, None]" is incompatible with type "SyncStarmapCallable[T@starmap, U@starmap] | AsyncStarmapCallable[T@starmap, U@starmap]"     Type "(token: str, file_id: int, out_dir: Path, key: bytes | None = None, algorithm: str | None = None) -> Coroutine[Any, Any, None]" is incompatible with type "(arg: T@starmap, /, *args: T@starmap) -> Awaitable[U@starmap]"       Parameter 3: type "T@starmap" is incompatible with type "Path"         "object*" is incompatible with "Path"       Parameter 4: type "T@starmap" is incompatible with type "bytes | None"         Type "T@starmap" is incompatible with type "bytes | None"           "object*" is incompatible with "bytes"           "object*" is incompatible with "None" ... (reportArgumentType)
build (3.11): build/lib/filesender/api.py#L429
Return type of async generator function must be compatible with "AsyncGenerator[tuple[File, Path], Any]"   "mime_type" is missing from "File"   "cid" is missing from "File" (reportReturnType)
build (3.11): build/lib/filesender/api.py#L432
Argument of type "(file_info: File, path: Path) -> Coroutine[Any, Any, None]" cannot be assigned to parameter "func" of type "SyncStarmapCallable[T@starmap, U@starmap] | AsyncStarmapCallable[T@starmap, U@starmap]" in function "__call__"   Type "(file_info: File, path: Path) -> Coroutine[Any, Any, None]" is incompatible with type "SyncStarmapCallable[File | Path, U@starmap] | AsyncStarmapCallable[File | Path, U@starmap]"     Type "(file_info: File, path: Path) -> Coroutine[Any, Any, None]" is incompatible with type "(arg: File | Path, /, *args: File | Path) -> Awaitable[U@starmap]"       Parameter 1: type "File | Path" is incompatible with type "File"         Type "File | Path" is incompatible with type "File"           "id" is missing from "File"           "transfer_id" is missing from "File"           "uid" is missing from "File"           "sha1" is missing from "File" ... (reportArgumentType)
build (3.11): filesender/api.py#L353
Argument of type "(token: str, file_id: int, out_dir: Path, key: bytes | None = None, algorithm: str | None = None) -> Coroutine[Any, Any, None]" cannot be assigned to parameter "func" of type "SyncStarmapCallable[T@starmap, U@starmap] | AsyncStarmapCallable[T@starmap, U@starmap]" in function "pipe"   Type "(token: str, file_id: int, out_dir: Path, key: bytes | None = None, algorithm: str | None = None) -> Coroutine[Any, Any, None]" is incompatible with type "SyncStarmapCallable[T@starmap, U@starmap] | AsyncStarmapCallable[T@starmap, U@starmap]"     Type "(token: str, file_id: int, out_dir: Path, key: bytes | None = None, algorithm: str | None = None) -> Coroutine[Any, Any, None]" is incompatible with type "(arg: T@starmap, /, *args: T@starmap) -> Awaitable[U@starmap]"       Parameter 3: type "T@starmap" is incompatible with type "Path"         "object*" is incompatible with "Path"       Parameter 4: type "T@starmap" is incompatible with type "bytes | None"         Type "T@starmap" is incompatible with type "bytes | None"           "object*" is incompatible with "bytes"           "object*" is incompatible with "None" ... (reportArgumentType)
build (3.11): filesender/api.py#L429
Return type of async generator function must be compatible with "AsyncGenerator[tuple[File, Path], Any]"   "mime_type" is missing from "File"   "cid" is missing from "File" (reportReturnType)
build (3.11): filesender/api.py#L432
Argument of type "(file_info: File, path: Path) -> Coroutine[Any, Any, None]" cannot be assigned to parameter "func" of type "SyncStarmapCallable[T@starmap, U@starmap] | AsyncStarmapCallable[T@starmap, U@starmap]" in function "__call__"   Type "(file_info: File, path: Path) -> Coroutine[Any, Any, None]" is incompatible with type "SyncStarmapCallable[File | Path, U@starmap] | AsyncStarmapCallable[File | Path, U@starmap]"     Type "(file_info: File, path: Path) -> Coroutine[Any, Any, None]" is incompatible with type "(arg: File | Path, /, *args: File | Path) -> Awaitable[U@starmap]"       Parameter 1: type "File | Path" is incompatible with type "File"         Type "File | Path" is incompatible with type "File"           "id" is missing from "File"           "transfer_id" is missing from "File"           "uid" is missing from "File"           "sha1" is missing from "File" ... (reportArgumentType)
build (3.11)
6 errors
build (3.10)
The job was canceled because "_3_9" failed.
build (3.10): build/lib/filesender/api.py#L353
Argument of type "(token: str, file_id: int, out_dir: Path, key: bytes | None = None, algorithm: str | None = None) -> Coroutine[Any, Any, None]" cannot be assigned to parameter "func" of type "SyncStarmapCallable[T@starmap, U@starmap] | AsyncStarmapCallable[T@starmap, U@starmap]" in function "pipe"   Type "(token: str, file_id: int, out_dir: Path, key: bytes | None = None, algorithm: str | None = None) -> Coroutine[Any, Any, None]" is incompatible with type "SyncStarmapCallable[T@starmap, U@starmap] | AsyncStarmapCallable[T@starmap, U@starmap]"     Type "(token: str, file_id: int, out_dir: Path, key: bytes | None = None, algorithm: str | None = None) -> Coroutine[Any, Any, None]" is incompatible with type "(arg: T@starmap, /, *args: T@starmap) -> Awaitable[U@starmap]"       Parameter 3: type "T@starmap" is incompatible with type "Path"         "object*" is incompatible with "Path"       Parameter 4: type "T@starmap" is incompatible with type "bytes | None"         Type "T@starmap" is incompatible with type "bytes | None"           "object*" is incompatible with "bytes"           "object*" is incompatible with "None" ... (reportArgumentType)
build (3.10): build/lib/filesender/api.py#L429
Return type of async generator function must be compatible with "AsyncGenerator[tuple[File, Path], Any]"   "mime_type" is missing from "File"   "cid" is missing from "File" (reportReturnType)
build (3.10): build/lib/filesender/api.py#L432
Argument of type "(file_info: File, path: Path) -> Coroutine[Any, Any, None]" cannot be assigned to parameter "func" of type "SyncStarmapCallable[T@starmap, U@starmap] | AsyncStarmapCallable[T@starmap, U@starmap]" in function "__call__"   Type "(file_info: File, path: Path) -> Coroutine[Any, Any, None]" is incompatible with type "SyncStarmapCallable[File | Path, U@starmap] | AsyncStarmapCallable[File | Path, U@starmap]"     Type "(file_info: File, path: Path) -> Coroutine[Any, Any, None]" is incompatible with type "(arg: File | Path, /, *args: File | Path) -> Awaitable[U@starmap]"       Parameter 1: type "File | Path" is incompatible with type "File"         Type "File | Path" is incompatible with type "File"           "id" is missing from "File"           "transfer_id" is missing from "File"           "uid" is missing from "File"           "sha1" is missing from "File" ... (reportArgumentType)
build (3.10): filesender/api.py#L353
Argument of type "(token: str, file_id: int, out_dir: Path, key: bytes | None = None, algorithm: str | None = None) -> Coroutine[Any, Any, None]" cannot be assigned to parameter "func" of type "SyncStarmapCallable[T@starmap, U@starmap] | AsyncStarmapCallable[T@starmap, U@starmap]" in function "pipe"   Type "(token: str, file_id: int, out_dir: Path, key: bytes | None = None, algorithm: str | None = None) -> Coroutine[Any, Any, None]" is incompatible with type "SyncStarmapCallable[T@starmap, U@starmap] | AsyncStarmapCallable[T@starmap, U@starmap]"     Type "(token: str, file_id: int, out_dir: Path, key: bytes | None = None, algorithm: str | None = None) -> Coroutine[Any, Any, None]" is incompatible with type "(arg: T@starmap, /, *args: T@starmap) -> Awaitable[U@starmap]"       Parameter 3: type "T@starmap" is incompatible with type "Path"         "object*" is incompatible with "Path"       Parameter 4: type "T@starmap" is incompatible with type "bytes | None"         Type "T@starmap" is incompatible with type "bytes | None"           "object*" is incompatible with "bytes"           "object*" is incompatible with "None" ... (reportArgumentType)
build (3.10): filesender/api.py#L429
Return type of async generator function must be compatible with "AsyncGenerator[tuple[File, Path], Any]"   "mime_type" is missing from "File"   "cid" is missing from "File" (reportReturnType)
build (3.10): filesender/api.py#L432
Argument of type "(file_info: File, path: Path) -> Coroutine[Any, Any, None]" cannot be assigned to parameter "func" of type "SyncStarmapCallable[T@starmap, U@starmap] | AsyncStarmapCallable[T@starmap, U@starmap]" in function "__call__"   Type "(file_info: File, path: Path) -> Coroutine[Any, Any, None]" is incompatible with type "SyncStarmapCallable[File | Path, U@starmap] | AsyncStarmapCallable[File | Path, U@starmap]"     Type "(file_info: File, path: Path) -> Coroutine[Any, Any, None]" is incompatible with type "(arg: File | Path, /, *args: File | Path) -> Awaitable[U@starmap]"       Parameter 1: type "File | Path" is incompatible with type "File"         Type "File | Path" is incompatible with type "File"           "id" is missing from "File"           "transfer_id" is missing from "File"           "uid" is missing from "File"           "sha1" is missing from "File" ... (reportArgumentType)
build (3.10)
6 errors
build (3.8)
The job was canceled because "_3_9" failed.
build (3.8): build/lib/filesender/api.py#L347
Subscript for class "tuple" will generate runtime exception; enclose type annotation in quotes (reportIndexIssue)
build (3.8): build/lib/filesender/api.py#L424
Subscript for class "tuple" will generate runtime exception; enclose type annotation in quotes (reportIndexIssue)
build (3.8): filesender/api.py#L347
Subscript for class "tuple" will generate runtime exception; enclose type annotation in quotes (reportIndexIssue)
build (3.8): filesender/api.py#L424
Subscript for class "tuple" will generate runtime exception; enclose type annotation in quotes (reportIndexIssue)
build (3.8)
4 errors
build (3.12)
The job was canceled because "_3_9" failed.
build (3.12)
The operation was canceled.