Ecosystem report

Old: main (merge base) 57a6e863 → New: 28828/merge dc62ff95
Lint Rule Removed Added Changed
Total 4 5 5
invalid-argument-type 1 2 2
invalid-assignment 3 0 0
type-assertion-failure 0 0 2
unsound-return-statement 0 1 1
unused-type-ignore-comment 0 2 0
Project Removed Added Changed
Total 4 5 5
pyochain non-strict 3 2 2
discord.py strict 1 3 0
prefect strict 0 0 3

discord.py strict (https://github.com/Rapptz/discord.py)

discord/app_commands/checks.py

[error] invalid-assignment - Object of type `Coroutine[Any, Any, Cooldown | None] | Cooldown | None` is not assignable to `Cooldown | None`

discord/app_commands/commands.py

[warning] unsound-return-statement - Unsound return statement: `Command[GroupT@decorator, (...), T@decorator]` is not a subtype of `Command[GroupT@decorator, P@decorator, T@decorator]`

discord/ext/commands/core.py

[warning] unused-type-ignore-comment - Unused blanket `type: ignore` directive
[warning] unused-type-ignore-comment - Unused blanket `type: ignore` directive

prefect strict (https://github.com/PrefectHQ/prefect)

src/integrations/prefect-dask/prefect_dask/task_runners.py

[error] invalid-argument-type - Argument to bound method `TaskRunner.map` is incorrect: Expected `Task[P@map, R@map | Any | CoroutineType[Any, Any, R@map | Any]]`, found `Task[P@map, R@map]`
[error] invalid-argument-type - Argument to bound method `TaskRunner.map` is incorrect: Expected `Task[P@map, Any | CoroutineType[Any, Any, Any]]`, found `Task[P@map, R@map]`

src/integrations/prefect-ray/prefect_ray/task_runners.py

[error] invalid-argument-type - Argument to bound method `TaskRunner.map` is incorrect: Expected `Task[P@map, R@RayTaskRunner | Any | CoroutineType[Any, Any, R@RayTaskRunner | Any]]`, found `Task[P@map, R@RayTaskRunner]`
[error] invalid-argument-type - Argument to bound method `TaskRunner.map` is incorrect: Expected `Task[P@map, Any | CoroutineType[Any, Any, Any]]`, found `Task[P@map, R@RayTaskRunner]`

src/prefect/server/database/dependencies.py

[warning] unsound-return-statement - Unsound return statement: `_DBInjectorMethod[T@DBInjector & ~None, P@DBInjector, Unknown]` is not a subtype of `Self@__get__ | _DBInjectorMethod[T@DBInjector, P@DBInjector, R@DBInjector]`
[warning] unsound-return-statement - Unsound return statement: `_DBInjectorMethod[T@DBInjector, P@DBInjector, R@DBInjector | Unknown]` is not a subtype of `Self@__get__ | _DBInjectorMethod[T@DBInjector, P@DBInjector, R@DBInjector]`

pyochain non-strict (https://github.com/OutSquareCapital/pyochain)

tests/test_concatenate_unsafe.py

[error] invalid-argument-type - Argument to bound method `Pipe.pipe` is incorrect: Expected `(Null[Literal[5]] | Some[int], /) -> Unknown`, found `(opt: Some[int]) -> Unknown`

tests/test_typing/check_abcs.py

[error] invalid-assignment - Object of type `Set[Vec[Dog]]` is not assignable to `PyoSet[Animal]`
[error] invalid-assignment - Object of type `Seq[Vec[Dog]]` is not assignable to `Seq[Animal]`

tests/test_result.py

[error] invalid-argument-type - Argument to bound method `Pipe.pipe` is incorrect: Expected `(Err[Literal[42], Any] | Ok[int, Any], /) -> str`, found `(res: Ok[int, Any]) -> str`

tests/test_typing/check_mixins.py

[error] type-assertion-failure - Type `Seq[Seq[int] | (Top[Pipe] & Iterable[Seq[int] | (Top[Pipe] & Iterable[Seq[int] | (Top[Pipe] & Iterable[Seq[int]])])])]` does not match asserted type `Seq[int]`
[error] type-assertion-failure - Type `Seq[int | Seq[int]]` does not match asserted type `Seq[int]`
[error] invalid-argument-type - Argument to bound method `Pipe.pipe` is incorrect: Expected `(Seq[int] | (Iterable[Seq[int] | (Top[Pipe] & Iterable[Seq[int] | (Top[Pipe] & Iterable[Seq[int] | (Top[Pipe] & Iterable[Seq[int]])])])] & Top[Pipe]), /) -> Seq[Seq[int] | (Top[Pipe] & Iterable[Seq[int] | (Top[Pipe] & Iterable[Seq[int] | (Top[Pipe] & Iterable[Seq[int]])])])]`, found `<class 'Seq[Seq[int] | (Top[Pipe] & Iterable[Seq[int] | (Top[Pipe] & Iterable[Seq[int] | (Top[Pipe] & Iterable[Seq[int]])])])]'>`
[error] type-assertion-failure - Type `Vec[int | Seq[int]]` does not match asserted type `Vec[int]`
[error] type-assertion-failure - Type `Unknown` does not match asserted type `Vec[int]`