Ecosystem report

Old: main (merge base) 8591a38d New: 23386/merge af95cd49
Lint Rule Removed Added Changed
Total 8 32 6
invalid-return-type 0 13 2
invalid-argument-type 1 9 4
unresolved-attribute 2 5 0
invalid-assignment 1 2 0
redundant-cast 3 0 0
call-non-callable 0 2 0
unused-type-ignore-comment 1 1 0
Project Removed Added Changed
Total 8 32 6
prefect flaky 0 12 1
graphql-core 2 3 0
anyio 1 2 1
starlette 0 3 0
strawberry 0 2 1
bokeh 1 1 0
discord.py 0 2 0
kopf 0 0 2
scrapy 0 2 0
trio 1 0 1
Tanjun 0 1 0
aiohttp 1 0 0
jinja 1 0 0
koda-validate 0 1 0
meson flaky 0 1 0
psycopg 0 1 0
pyodide 0 1 0
spack flaky 1 0 0
Expression flaky 0 0 0
PyGithub flaky 0 0 0

Tanjun (https://github.com/FasterSpeeding/Tanjun)

tanjun/dependencies/data.py

[error] invalid-return-type - Return type does not match returned value: expected `_T@inject_lc`, found `_T@inject_lc | Coroutine[Any, Any, _T@inject_lc]`

aiohttp (https://github.com/aio-libs/aiohttp)

aiohttp/web.py

[error] invalid-assignment - Object of type `object` is not assignable to `Application | Awaitable[Application]`

anyio (https://github.com/agronholm/anyio)

src/anyio/from_thread.py

[error] invalid-argument-type - Argument to bound method `set_result` is incorrect: Expected `T_Retval@_call_func`, found `object`

src/anyio/functools.py

[warning] redundant-cast - Value is already of type `T@reduce`
[error] invalid-argument-type - Argument is incorrect: Expected `S@reduce`, found `T@reduce`
[error] invalid-argument-type - Argument is incorrect: Expected `S@reduce`, found `object`
[error] invalid-argument-type - Argument is incorrect: Expected `T@reduce`, found `object`

bokeh (https://github.com/bokeh/bokeh)

src/bokeh/server/views/session_handler.py

[error] invalid-argument-type - Argument to function `authenticated` is incorrect: Expected `(...) -> Awaitable[None] | None`, found `def get_session(self) -> CoroutineType[Any, Any, ServerSession]`

src/bokeh/layouts.py

flaky
(3/10)
[error] invalid-argument-type - Argument to bound method `__init__` is incorrect: Expected `Iterable[L@_parse_children_arg]`, found `tuple[L@_parse_children_arg | list[L@_parse_children_arg], ...]`

discord.py (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/utils.py

[error] invalid-return-type - Return type does not match returned value: expected `T@maybe_coroutine`, found `object`

graphql-core (https://github.com/graphql-python/graphql-core)

tests/execution/test_middleware.py

[error] unresolved-attribute - Object of type `object` has no attribute `data`
[error] unresolved-attribute - Object of type `object` has no attribute `data`
[error] unresolved-attribute - Object of type `object` has no attribute `data`
[error] unresolved-attribute - Object of type `object` has no attribute `data`
[error] unresolved-attribute - Object of type `object` has no attribute `data`

jinja (https://github.com/pallets/jinja)

src/jinja2/async_utils.py

[warning] redundant-cast - Value is already of type `Awaitable[V@auto_await]`

koda-validate (https://github.com/keithasaurus/koda-validate)

koda_validate/_internal.py

[error] invalid-return-type - Return type does not match returned value: expected `(Any, /) -> Awaitable[tuple[Literal[True], A@_wrap_async_validator] | tuple[Literal[False], Invalid]]`, found `bound method Top[_ToTupleValidator[Unknown]]._validate_to_tuple_async(val: Never) -> CoroutineType[object, Never, tuple[Literal[True], object] | tuple[Literal[False], Invalid]]`

kopf (https://github.com/nolar/kopf)

kopf/_kits/webhacks.py

[error] invalid-argument-type - Argument to bound method `append` is incorrect: Expected `AsyncGenerator[WebhookClientConfig, None]`, found `AsyncGenerator[object, None]`
[error] invalid-argument-type - Argument to bound method `append` is incorrect: Expected `AsyncGenerator[WebhookClientConfig, None]`, found `AsyncIterator[WebhookClientConfig] & AsyncGenerator[object, None]`
[error] invalid-argument-type - Argument to bound method `remove` is incorrect: Expected `AsyncGenerator[WebhookClientConfig, None]`, found `AsyncGenerator[object, None]`
[error] invalid-argument-type - Argument to bound method `remove` is incorrect: Expected `AsyncGenerator[WebhookClientConfig, None]`, found `AsyncIterator[WebhookClientConfig] & AsyncGenerator[object, None]`

meson (https://github.com/mesonbuild/meson)

mesonbuild/mtest.py

[error] invalid-return-type - Return type does not match returned value: expected `tuple[Awaitable[str] | None, Awaitable[str] | None]`, found `tuple[Task[None] | None, Task[None] | None]`

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

src/prefect/_internal/concurrency/api.py

[error] invalid-return-type - Return type does not match returned value: expected `T@wait_for_call_in_loop_thread`, found `Awaitable[T@wait_for_call_in_loop_thread] | T@wait_for_call_in_loop_thread`
[error] invalid-return-type - Return type does not match returned value: expected `T@wait_for_call_in_loop_thread`, found `Awaitable[T@wait_for_call_in_loop_thread] | T@wait_for_call_in_loop_thread`

src/prefect/_internal/concurrency/calls.py

[error] invalid-return-type - Return type does not match returned value: expected `Awaitable[None] | None`, found `Task[_T@create_task]`
[error] invalid-return-type - Return type does not match returned value: expected `Awaitable[T@Call] | None`, found `(T@Call & Awaitable[object]) | Awaitable[T@Call]`

src/prefect/cli/_cyclopts/deployment.py

[error] unresolved-attribute - Object of type `object` has no attribute `model_dump`

src/prefect/cli/deploy/_core.py

[error] invalid-argument-type - Argument to function `_initialize_deployment_slas` is incorrect: Expected `UUID`, found `object`
[error] invalid-argument-type - Argument to function `_create_slas` is incorrect: Expected `UUID`, found `object`
[error] invalid-argument-type - Argument to function `_create_deployment_triggers` is incorrect: Expected `UUID`, found `object`

src/prefect/cli/deployment.py

[error] unresolved-attribute - Object of type `object` has no attribute `model_dump`

src/prefect/concurrency/_leases.py

[error] invalid-argument-type - Argument to bound method `add_done_callback` is incorrect: Expected `(Future[CoroutineType[Any, Any, None] | None], /) -> object`, found `def handle_lease_renewal_failure(future: Future[None]) -> Unknown`

src/prefect/futures.py

[error] invalid-return-type - Return type does not match returned value: expected `R@PrefectDistributedFuture`, found `R@PrefectDistributedFuture | Exception`
[error] invalid-return-type - Return type does not match returned value: expected `R@PrefectDistributedFuture`, found `R@PrefectDistributedFuture | Exception | Any`

src/prefect/utilities/asyncutils.py

flaky
(7/10)
[error] invalid-return-type - Return type does not match returned value: expected `R@run_coro_as_sync | None`, found `CoroutineType[Any, Any, R@run_coro_as_sync | None] | R@run_coro_as_sync | None`
flaky
(7/10)
[error] invalid-return-type - Return type does not match returned value: expected `R@run_coro_as_sync | None`, found `CoroutineType[Any, Any, R@run_coro_as_sync | None] | R@run_coro_as_sync | None`

psycopg (https://github.com/psycopg/psycopg)

psycopg_pool/psycopg_pool/_acompat.py

[error] invalid-return-type - Return type does not match returned value: expected `T@ensure_async`, found `object`

pyodide (https://github.com/pyodide/pyodide)

src/py/pyodide/webloop.py

[error] invalid-argument-type - Argument to bound method `set_result` is incorrect: Expected `S@then`, found `~Awaitable[object]`

scrapy (https://github.com/scrapy/scrapy)

scrapy/core/spidermw.py

[error] invalid-argument-type - Argument to function `process_async` is incorrect: Expected `AsyncIterator[_T@_evaluate_iterable]`, found `(Iterable[_T@_evaluate_iterable] & AsyncIterator[object]) | AsyncIterator[_T@_evaluate_iterable]`

scrapy/pipelines/__init__.py

[error] invalid-return-type - Return type does not match returned value: expected `Awaitable[None]`, found `Awaitable[Coroutine[Any, Any, None] | Unknown | None]`

spack (https://github.com/spack/spack)

lib/spack/spack/vendor/jinja2/async_utils.py

[warning] redundant-cast - Value is already of type `Awaitable[V@auto_await]`

starlette (https://github.com/encode/starlette)

starlette/_exception_handler.py

[error] call-non-callable - Object of type `~None` is not callable

starlette/middleware/errors.py

[error] call-non-callable - Object of type `object` is not callable

starlette/responses.py

[error] invalid-assignment - Object of type `AsyncIterable[str | bytes | memoryview[int]] | (Iterable[str | bytes | memoryview[int]] & AsyncIterable[object])` is not assignable to attribute `body_iterator` of type `AsyncIterable[str | bytes | memoryview[int]]`

strawberry (https://github.com/strawberry-graphql/strawberry)

strawberry/utils/await_maybe.py

[error] invalid-return-type - Return type does not match returned value: expected `T@await_maybe`, found `object`

strawberry/relay/types.py

[error] invalid-argument-type - Argument is incorrect: Expected `_T@aclosing`, found `AsyncIterable[NodeType@ListConnection]`
[error] invalid-argument-type - Argument is incorrect: Expected `_T@aclosing`, found `AsyncIterable[NodeType@ListConnection] | AsyncIterator[Unknown]`

strawberry/schema/schema.py

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

trio (https://github.com/python-trio/trio)

src/trio/_core/_tests/test_run.py

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

src/trio/_util.py

[error] invalid-return-type - Return type does not match returned value: expected `Coroutine[object, Never, RetT@coroutine_or_error]`, found `Coroutine[object, Never, object]`
[error] invalid-return-type - Return type does not match returned value: expected `Coroutine[object, Never, RetT@coroutine_or_error]`, found `Awaitable[RetT@coroutine_or_error] & Coroutine[object, Never, object]`