More type checking #24
Annotations
7 errors
build/lib/filesender/api.py#L11
Import "pipe" is not accessed (reportUnusedImport)
|
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 "__call__"
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[str | Any | Path, U@starmap] | AsyncStarmapCallable[str | Any | Path, 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: str | Any | Path, /, *args: str | Any | Path) -> Awaitable[U@starmap]"
Parameter 1: type "str | Any | Path" is incompatible with type "str"
Type "str | Any | Path" is incompatible with type "str"
"Path" is incompatible with "str"
Parameter 3: type "str | Any | Path" is incompatible with type "Path"
Type "str | Any | Path" is incompatible with type "Path"
"str" is incompatible with "Path"
... (reportArgumentType)
|
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"
"Path" is incompatible with "File"
Parameter "*args" has no corresponding parameter
Type "(file_info: File, path: Path) -> Coroutine[Any, Any, None]" is incompatible with type "(arg: File | Path, /, *args: File | Path) -> U@starmap"
Parameter 1: type "File | Path" is incompatible with type "File"
... (reportArgumentType)
|
filesender/api.py#L11
Import "pipe" is not accessed (reportUnusedImport)
|
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 "__call__"
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[str | Any | Path, U@starmap] | AsyncStarmapCallable[str | Any | Path, 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: str | Any | Path, /, *args: str | Any | Path) -> Awaitable[U@starmap]"
Parameter 1: type "str | Any | Path" is incompatible with type "str"
Type "str | Any | Path" is incompatible with type "str"
"Path" is incompatible with "str"
Parameter 3: type "str | Any | Path" is incompatible with type "Path"
Type "str | Any | Path" is incompatible with type "Path"
"str" is incompatible with "Path"
... (reportArgumentType)
|
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"
"Path" is incompatible with "File"
Parameter "*args" has no corresponding parameter
Type "(file_info: File, path: Path) -> Coroutine[Any, Any, None]" is incompatible with type "(arg: File | Path, /, *args: File | Path) -> U@starmap"
Parameter 1: type "File | Path" is incompatible with type "File"
... (reportArgumentType)
|
|
This job failed
Loading