Bump pyright #23
Annotations
7 errors
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/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/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)
|
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)
|
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)
|
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)
|
|
This job failed
Loading