[ty] Support async/await, async with and yield from by sharkdp · Pull Request #19595 · astral-sh/ruff (original) (raw)
mypy_primer results
Changes were detected when running on open source projects
mypy_primer (https://github.com/hauntsaninja/mypy_primer)
- mypy_primer/utils.py:114:12: error[invalid-return-type] Return type does not match returned value: expected
tuple[CompletedProcess[str], int | float], foundtuple[CompletedProcess[@Todo(generictyping.Awaitabletype) | None], int | float] - Found 9 diagnostics
- Found 8 diagnostics
anyio (https://github.com/agronholm/anyio)
- src/anyio/_core/_contextmanagers.py:165:16: error[invalid-return-type] Return type does not match returned value: expected
_T_co, foundobject - src/anyio/_core/_sockets.py:596:64: error[invalid-argument-type] Argument to function
convert_ipv6_sockaddris incorrect: Expectedtuple[str, int, int, int] | tuple[str, int], foundtuple[str, int] | tuple[str, int, int, int] | tuple[int, bytes]
- Found 83 diagnostics
- Found 85 diagnostics
graphql-core (https://github.com/graphql-python/graphql-core)
- src/graphql/pyutils/gather_with_cancel.py:28:16: error[invalid-return-type] Return type does not match returned value: expected
list[Any], foundtuple[Unknown] - src/graphql/pyutils/gather_with_cancel.py:30:16: error[invalid-return-type] Return type does not match returned value: expected
list[Any], foundtuple[Unknown]
- Found 327 diagnostics
- Found 329 diagnostics
trio (https://github.com/python-trio/trio)
- src/trio/_core/_tests/test_run.py:1736:28: warning[unused-ignore-comment] Unused blanket
type: ignoredirective - src/trio/_core/_tests/test_run.py:1746:30: warning[unused-ignore-comment] Unused blanket
type: ignoredirective - src/trio/_tests/test_highlevel_open_tcp_listeners.py:408:57: warning[unused-ignore-comment] Unused blanket
type: ignoredirective - src/trio/_tests/test_subprocess.py:370:32: error[invalid-argument-type] Argument to function
run_processis incorrect: Expectedbytes | bytearray | memoryview[Unknown] | int | HasFileno | None, foundLiteral["oh no, it's text"]
- src/trio/_tests/test_testing.py:423:20: error[invalid-return-type] Return type does not match returned value: expected
bytes, foundbytearray
- src/trio/_tests/test_util.py:109:38: warning[unused-ignore-comment] Unused blanket
type: ignoredirective
- src/trio/_tests/test_util.py:120:28: error[not-iterable] Object of type
CoroutineType[Any, Any, None]is not iterable
- src/trio/_tests/test_util.py:154:49: warning[unused-ignore-comment] Unused blanket
type: ignoredirective - src/trio/testing/_fake_net.py:330:56: error[invalid-argument-type] Argument to bound method
from_python_sockaddris incorrect: Expectedtuple[str, int] | tuple[str, int, int, int], foundNone | @Todo(generictyping.Awaitabletype)
- src/trio/testing/_fake_net.py:330:56: error[invalid-argument-type] Argument to bound method
from_python_sockaddris incorrect: Expectedtuple[str, int] | tuple[str, int, int, int], foundNone | Unknown
- Found 738 diagnostics
- Found 734 diagnostics
mongo-python-driver (https://github.com/mongodb/mongo-python-driver)
- pymongo/asynchronous/server.py:273:94: warning[unused-ignore-comment] Unused blanket
type: ignoredirective - pymongo/synchronous/helpers.py:86:56: warning[unused-ignore-comment] Unused blanket
type: ignoredirective - Found 412 diagnostics
- Found 410 diagnostics
discord.py (https://github.com/Rapptz/discord.py)
- discord/webhook/async_.py:212:71: warning[unused-ignore-comment] Unused blanket
type: ignoredirective - Found 519 diagnostics
- Found 518 diagnostics
strawberry (https://github.com/strawberry-graphql/strawberry)
- strawberry/http/async_base_view.py:213:20: error[invalid-return-type] Return type does not match returned value: expected
ExecutionResult | list[ExecutionResult] | SubscriptionExecutionResult, foundtuple[Unknown]
- Found 368 diagnostics
- Found 369 diagnostics
bandersnatch (https://github.com/pypa/bandersnatch)
- src/bandersnatch/tests/test_package.py:31:12: error[unresolved-attribute] Type
bound method Master.get_package_metadata(package_name: str, serial: int = Literal[0]) -> @Todo(generic types.CoroutineType)has no attributeawait_count
- src/bandersnatch/tests/test_package.py:31:12: error[unresolved-attribute] Type
bound method Master.get_package_metadata(package_name: str, serial: int = Literal[0]) -> CoroutineType[Any, Any, Any]has no attributeawait_count
- src/bandersnatch/tests/test_package.py:58:12: error[unresolved-attribute] Type
bound method Master.get_package_metadata(package_name: str, serial: int = Literal[0]) -> @Todo(generic types.CoroutineType)has no attributeawait_count
- src/bandersnatch/tests/test_package.py:58:12: error[unresolved-attribute] Type
bound method Master.get_package_metadata(package_name: str, serial: int = Literal[0]) -> CoroutineType[Any, Any, Any]has no attributeawait_count
dragonchain (https://github.com/dragonchain/dragonchain)
- dragonchain/lib/database/redis_utest.py:46:9: error[unresolved-attribute] Type
def _initialize_async_redis(host: str, port: int, wait_time: int = Literal[30]) -> @Todo(generic types.CoroutineType)has no attributeassert_called_once
- dragonchain/lib/database/redis_utest.py:46:9: error[unresolved-attribute] Type
def _initialize_async_redis(host: str, port: int, wait_time: int = Literal[30]) -> CoroutineType[Any, Any, Unknown]has no attributeassert_called_once
websockets (https://github.com/aaugustin/websockets)
- src/websockets/legacy/server.py:607:34: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedbytes, found@Todo(generictyping.Awaitabletype) | Literal[HTTPStatus.SERVICE_UNAVAILABLE, b"Server is shutting down.\n"] | list[Unknown]
- src/websockets/legacy/server.py:607:34: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedbytes, foundUnknown | Literal[HTTPStatus.SERVICE_UNAVAILABLE, b"Server is shutting down.\n"] | list[Unknown]
freqtrade (https://github.com/freqtrade/freqtrade)
- freqtrade/exchange/binance_public_data.py:96:16: error[invalid-return-type] Return type does not match returned value: expected
DataFrame, found@Todo(generictyping.Awaitabletype) | Series[Any]
- freqtrade/exchange/binance_public_data.py:96:16: error[invalid-return-type] Return type does not match returned value: expected
DataFrame, foundSeries[Any] | Unknown
paasta (https://github.com/yelp/paasta)
- paasta_tools/contrib/get_running_task_allocation.py:102:17: error[invalid-argument-type] Argument is incorrect: Expected
str, foundstr | None - paasta_tools/instance/kubernetes.py:816:17: error[invalid-argument-type] Argument to function
get_replicaset_statusis incorrect: ExpectedSequence[Future[dict[str, Any]]], foundSequence[Future[dict[str, Any]]] | None - paasta_tools/instance/kubernetes.py:821:12: error[invalid-return-type] Return type does not match returned value: expected
list[KubernetesVersionDict], foundtuple[Unknown] - paasta_tools/instance/kubernetes.py:1099:12: error[invalid-return-type] Return type does not match returned value: expected
list[KubernetesVersionDict], foundtuple[Unknown]
- Found 881 diagnostics
- Found 885 diagnostics
aiohttp (https://github.com/aio-libs/aiohttp)
- aiohttp/connector.py:1545:29: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedRequestInfo, foundUnknown | under_cached_property[Unknown] - aiohttp/connector.py:1546:29: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedtuple[ClientResponse, ...], foundUnknown | under_cached_property[Unknown] - aiohttp/connector.py:1549:29: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedMultiMapping[str] | None, foundUnknown | under_cached_property[Unknown] - aiohttp/web_middlewares.py:109:42: error[unsupported-operator] Operator
+is unsupported between objects of typeUnknown | under_cached_property[Unknown]andUnknown | Literal[""]
- Found 168 diagnostics
- Found 172 diagnostics
mitmproxy (https://github.com/mitmproxy/mitmproxy)
- test/mitmproxy/addons/test_clientplayback.py🔞1: error[invalid-argument-type] Argument to function
asynccontextmanageris incorrect: Expected(...) -> AsyncIterator[Unknown], founddef tcp_server(handle_conn, **server_args) -> Unknown | tuple[str, int] - test/mitmproxy/addons/test_proxyserver.py:337:1: error[invalid-argument-type] Argument to function
asynccontextmanageris incorrect: Expected(...) -> AsyncIterator[Unknown], founddef udp_server(handle_datagram: (DatagramTransport, bytes, tuple[str, int], /) -> None) -> Unknown | tuple[str, int]
- Found 1814 diagnostics
- Found 1816 diagnostics
meson (https://github.com/mesonbuild/meson)
- mesonbuild/scripts/run_tool.py:49:12: error[invalid-return-type] Return type does not match returned value: expected
int, foundint | None
- Found 773 diagnostics
- Found 774 diagnostics
prefect (https://github.com/PrefectHQ/prefect)
- src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:406:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:407:36: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:500:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:501:36: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:542:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:543:36: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:592:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:593:36: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:638:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:639:36: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:669:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:670:36: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:703:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:704:36: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:757:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:758:36: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:795:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:796:36: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:835:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:836:36: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:892:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:893:36: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:936:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:937:36: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:963:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:964:36: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:988:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:989:36: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1018:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1064:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1113:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1165:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1306:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1342:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1544:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1545:36: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1587:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1588:36: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1618:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1619:36: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1656:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1657:38: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1659:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1660:38: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1703:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1704:38: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1706:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1707:38: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1731:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1733:38: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1735:38: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1761:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1762:38: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1764:38: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1792:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1794:38: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1796:38: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1829:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1830:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1832:38: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1834:38: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1836:38: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1868:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1870:38: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1872:38: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1902:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1904:38: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1906:38: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1967:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1969:38: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:1971:38: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:2001:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:2002:36: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:2035:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:2036:36: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:2072:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:2073:36: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:2129:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:2130:36: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:2174:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:2175:36: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:2229:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:2230:36: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:2275:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:2276:36: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:2318:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:2319:36: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:2365:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:2366:36: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:2458:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:2459:36: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:2482:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:2483:36: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:2676:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:2677:36: error[unresolved-attribute] Type
strhas no attributeidentifier - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:2704:12: error[unresolved-attribute] Type
strhas no attributestatus_code - src/integrations/prefect-aws/tests/workers/test_ecs_worker.py:2705:36: error[unresolved-attribute] Type
strhas no attributeidentifier
- src/prefect/cli/deploy.py:688:13: error[invalid-argument-type] Argument to function
_generate_default_pull_actionis incorrect: Expectedlist[dict[str, Any]], found(dict[str, Any] & ~AlwaysFalsy) | dict[Unknown, Unknown] | @Todo(generictyping.Awaitabletype)
- src/prefect/cli/deploy.py:688:13: error[invalid-argument-type] Argument to function
_generate_default_pull_actionis incorrect: Expectedlist[dict[str, Any]], found(dict[str, Any] & ~AlwaysFalsy) | dict[Unknown, Unknown] | dict[str, list[dict[str, Any]]] - src/prefect/cli/work_pool.py:208:42: error[invalid-argument-type] Argument to function
provisionis incorrect: Expecteddict[str, Any], founddict[str, Any] | None | Any - src/prefect/cli/work_pool.py:226:17: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Any], founddict[str, Any] | None | Any - src/prefect/cli/work_pool.py:869:33: warning[possibly-unbound-attribute] Attribute
idon typeBlockSchema | Noneis possibly unbound - src/prefect/cli/worker.py:159:14: error[call-non-callable] Object of type
Noneis not callable
- src/prefect/events/related.py💯17: error[invalid-argument-type] Argument to function
_get_and_cache_related_objectis incorrect: Expected(UUID | str, /) -> Awaitable[ObjectBaseModel | None], foundbound method PrefectClient.read_flow_run(flow_run_id: UUID) -> @Todo(generic types.CoroutineType)
- src/prefect/events/related.py💯17: error[invalid-argument-type] Argument to function
_get_and_cache_related_objectis incorrect: Expected(UUID | str, /) -> Awaitable[ObjectBaseModel | None], foundbound method PrefectClient.read_flow_run(flow_run_id: UUID) -> CoroutineType[Any, Any, FlowRun]
- src/prefect/events/related.py:123:21: error[invalid-argument-type] Argument to function
_get_and_cache_related_objectis incorrect: Expected(UUID | str, /) -> Awaitable[ObjectBaseModel | None], foundbound method PrefectClient.read_flow(flow_id: UUID) -> @Todo(generic types.CoroutineType)
- src/prefect/events/related.py:123:21: error[invalid-argument-type] Argument to function
_get_and_cache_related_objectis incorrect: Expected(UUID | str, /) -> Awaitable[ObjectBaseModel | None], foundbound method PrefectClient.read_flow(flow_id: UUID) -> CoroutineType[Any, Any, Flow]
- src/prefect/events/related.py:142:25: error[invalid-argument-type] Argument to function
_get_and_cache_related_objectis incorrect: Expected(UUID | str, /) -> Awaitable[ObjectBaseModel | None], foundbound method PrefectClient.read_work_queue(id: UUID) -> @Todo(generic types.CoroutineType)
- src/prefect/events/related.py:142:25: error[invalid-argument-type] Argument to function
_get_and_cache_related_objectis incorrect: Expected(UUID | str, /) -> Awaitable[ObjectBaseModel | None], foundbound method PrefectClient.read_work_queue(id: UUID) -> CoroutineType[Any, Any, WorkQueue]
- src/prefect/events/related.py:153:25: error[invalid-argument-type] Argument to function
_get_and_cache_related_objectis incorrect: Expected(UUID | str, /) -> Awaitable[ObjectBaseModel | None], foundbound method PrefectClient.read_work_pool(work_pool_name: str) -> @Todo(generic types.CoroutineType)
- src/prefect/events/related.py:153:25: error[invalid-argument-type] Argument to function
_get_and_cache_related_objectis incorrect: Expected(UUID | str, /) -> Awaitable[ObjectBaseModel | None], foundbound method PrefectClient.read_work_pool(work_pool_name: str) -> CoroutineType[Any, Any, WorkPool] - src/prefect/flow_runs.py:316:16: warning[possibly-unbound-attribute] Attribute
is_runningon typeState[Any] | Noneis possibly unbound - src/prefect/flow_runs.py:478:16: warning[possibly-unbound-attribute] Attribute
is_pausedon typeState[Any] | Noneis possibly unbound - src/prefect/flow_runs.py:484:12: warning[possibly-unbound-attribute] Attribute
typeon typeState[Any] | Noneis possibly unbound - src/prefect/infrastructure/provisioners/cloud_run.py:238:37: warning[possibly-unbound-attribute] Attribute
idon typeBlockSchema | Noneis possibly unbound - src/prefect/infrastructure/provisioners/container_instance.py:731:37: warning[possibly-unbound-attribute] Attribute
idon typeBlockSchema | Noneis possibly unbound - src/prefect/server/api/artifacts.py:46:12: error[invalid-return-type] Return type does not match returned value: expected
Artifact, foundArtifact - src/prefect/server/events/actions.py:626:16: error[invalid-return-type] Return type does not match returned value: expected
list[str], foundtuple[Unknown] - src/prefect/task_engine.py:1708:16: error[invalid-return-type] Return type does not match returned value: expected
R | State[Any] | None | Coroutine[Any, Any, R | State[Any] | None], foundAsyncGenerator[Unknown, None]
- Found 3712 diagnostics
- Found 3821 diagnostics
Memory usage changes were detected when running on open source projects
prefect (https://github.com/PrefectHQ/prefect)
memo metadata = ~73MB
memo metadata = ~76MB