[ty] View ecosystem results for synthetic protocol#25112
Draft
charliermarsh wants to merge 6 commits into
Draft
Conversation
Typing conformance resultsNo changes detected ✅Current numbersThe percentage of diagnostics emitted that were expected errors held steady at 89.54%. The percentage of expected errors that received a diagnostic held steady at 86.33%. The number of fully passing files held steady at 88/134. |
Memory usage reportSummary
Significant changesClick to expand detailed breakdownprefect
trio
sphinx
flake8
|
|
| Lint rule | Added | Removed | Changed |
|---|---|---|---|
invalid-argument-type |
0 | 0 | 9 |
unresolved-attribute |
0 | 0 | 5 |
invalid-type-guard-definition |
0 | 0 | 3 |
invalid-yield |
0 | 1 | 1 |
invalid-assignment |
0 | 0 | 1 |
invalid-return-type |
0 | 0 | 1 |
not-subscriptable |
0 | 0 | 1 |
| Total | 0 | 1 | 21 |
Raw diff (22 changes)
core (https://github.com/home-assistant/core)
- homeassistant/components/tessie/entity.py:102:34 error[invalid-argument-type] Argument to function `handle_command` is incorrect: Expected `Awaitable[dict[str, Any]]`, found `(((...) -> Awaitable[dict[str, Any]]) & Awaitable[object]) | Awaitable[dict[str, Any]]`
+ homeassistant/components/tessie/entity.py:102:34 error[invalid-argument-type] Argument to function `handle_command` is incorrect: Expected `Awaitable[dict[str, Any]]`, found `(((...) -> Awaitable[dict[str, Any]]) & <Protocol with members '__await__'>) | Awaitable[dict[str, Any]]`
discord.py (https://github.com/Rapptz/discord.py)
- discord/ext/commands/cog.py:461:32 error[invalid-yield] Yield type `Command[Never, (...), Any]` does not match annotated yield type `Command[Self@walk_commands, (...), Any]`
+ discord/ext/commands/cog.py:461:32 error[invalid-yield] Yield type `Command[CogT@GroupMixin, (...), Any]` does not match annotated yield type `Command[Self@walk_commands, (...), Any]`
- discord/ext/commands/core.py:1455:28 error[invalid-yield] Yield type `Command[Never, (...), Any]` does not match annotated yield type `Command[CogT@GroupMixin, (...), Any]`
mypy (https://github.com/python/mypy)
- mypy/typeshed/stdlib/dataclasses.pyi:380:33 error[invalid-type-guard-definition] Narrowed type `DataclassInstance | type` is not assignable to the declared parameter type `Never`
+ mypy/typeshed/stdlib/dataclasses.pyi:380:33 error[invalid-type-guard-definition] Narrowed type `<Protocol with members '__dataclass_fields__'> | type` is not assignable to the declared parameter type `Never`
- mypy/typeshed/stdlib/dataclasses.pyi:382:32 error[invalid-type-guard-definition] Narrowed type `DataclassInstance | type` is not assignable to the declared parameter type `Never`
+ mypy/typeshed/stdlib/dataclasses.pyi:382:32 error[invalid-type-guard-definition] Narrowed type `<Protocol with members '__dataclass_fields__'> | type` is not assignable to the declared parameter type `Never`
- mypy/typeshed/stdlib/dataclasses.pyi:384:34 error[invalid-type-guard-definition] Narrowed type `DataclassInstance | type` is not assignable to the declared parameter type `Never`
+ mypy/typeshed/stdlib/dataclasses.pyi:384:34 error[invalid-type-guard-definition] Narrowed type `<Protocol with members '__dataclass_fields__'> | type` is not assignable to the declared parameter type `Never`
pandas (https://github.com/pandas-dev/pandas)
- pandas/io/formats/style.py:4352:41 error[invalid-argument-type] Argument to function `_validate_apply_axis_arg` is incorrect: Expected `NDFrame | Sequence[Unknown] | ndarray[tuple[Any, ...], dtype[Any]]`, found `bytes | (date & Iterable[object]) | (timedelta & Iterable[object]) | ... omitted 12 union elements`
+ pandas/io/formats/style.py:4352:41 error[invalid-argument-type] Argument to function `_validate_apply_axis_arg` is incorrect: Expected `NDFrame | Sequence[Unknown] | ndarray[tuple[Any, ...], dtype[Any]]`, found `bytes | (date & <Protocol with members '__iter__'>) | (timedelta & <Protocol with members '__iter__'>) | ... omitted 12 union elements`
- pandas/io/formats/style.py:4355:42 error[invalid-argument-type] Argument to function `_validate_apply_axis_arg` is incorrect: Expected `NDFrame | Sequence[Unknown] | ndarray[tuple[Any, ...], dtype[Any]]`, found `bytes | (date & Iterable[object]) | (timedelta & Iterable[object]) | ... omitted 12 union elements`
+ pandas/io/formats/style.py:4355:42 error[invalid-argument-type] Argument to function `_validate_apply_axis_arg` is incorrect: Expected `NDFrame | Sequence[Unknown] | ndarray[tuple[Any, ...], dtype[Any]]`, found `bytes | (date & <Protocol with members '__iter__'>) | (timedelta & <Protocol with members '__iter__'>) | ... omitted 12 union elements`
- pandas/io/formats/style.py:4377:22 error[invalid-argument-type] Argument to function `ge` is incorrect: Expected `_SupportsDunderLE | _SupportsDunderGE | _SupportsDunderGT | _SupportsDunderLT`, found `(date & ~Iterable[object]) | (timedelta & ~Iterable[object]) | (datetime64[date | int | None] & ~Iterable[object]) | ... omitted 10 union elements`
+ pandas/io/formats/style.py:4377:22 error[invalid-argument-type] Argument to function `ge` is incorrect: Expected `_SupportsDunderLE | _SupportsDunderGE | _SupportsDunderGT | _SupportsDunderLT`, found `(date & ~<Protocol with members '__iter__'>) | (timedelta & ~<Protocol with members '__iter__'>) | (datetime64[date | int | None] & ~<Protocol with members '__iter__'>) | ... omitted 10 union elements`
- pandas/io/formats/style.py:4377:22 error[invalid-argument-type] Argument to function `gt` is incorrect: Expected `_SupportsDunderLE | _SupportsDunderGE | _SupportsDunderGT | _SupportsDunderLT`, found `(date & ~Iterable[object]) | (timedelta & ~Iterable[object]) | (datetime64[date | int | None] & ~Iterable[object]) | ... omitted 10 union elements`
+ pandas/io/formats/style.py:4377:22 error[invalid-argument-type] Argument to function `gt` is incorrect: Expected `_SupportsDunderLE | _SupportsDunderGE | _SupportsDunderGT | _SupportsDunderLT`, found `(date & ~<Protocol with members '__iter__'>) | (timedelta & ~<Protocol with members '__iter__'>) | (datetime64[date | int | None] & ~<Protocol with members '__iter__'>) | ... omitted 10 union elements`
- pandas/io/formats/style.py:4388:22 error[invalid-argument-type] Argument to function `le` is incorrect: Expected `_SupportsDunderLE | _SupportsDunderGE | _SupportsDunderGT | _SupportsDunderLT`, found `(date & ~Iterable[object]) | (timedelta & ~Iterable[object]) | (datetime64[date | int | None] & ~Iterable[object]) | ... omitted 10 union elements`
+ pandas/io/formats/style.py:4388:22 error[invalid-argument-type] Argument to function `le` is incorrect: Expected `_SupportsDunderLE | _SupportsDunderGE | _SupportsDunderGT | _SupportsDunderLT`, found `(date & ~<Protocol with members '__iter__'>) | (timedelta & ~<Protocol with members '__iter__'>) | (datetime64[date | int | None] & ~<Protocol with members '__iter__'>) | ... omitted 10 union elements`
- pandas/io/formats/style.py:4388:22 error[invalid-argument-type] Argument to function `lt` is incorrect: Expected `_SupportsDunderLE | _SupportsDunderGE | _SupportsDunderGT | _SupportsDunderLT`, found `(date & ~Iterable[object]) | (timedelta & ~Iterable[object]) | (datetime64[date | int | None] & ~Iterable[object]) | ... omitted 10 union elements`
+ pandas/io/formats/style.py:4388:22 error[invalid-argument-type] Argument to function `lt` is incorrect: Expected `_SupportsDunderLE | _SupportsDunderGE | _SupportsDunderGT | _SupportsDunderLT`, found `(date & ~<Protocol with members '__iter__'>) | (timedelta & ~<Protocol with members '__iter__'>) | (datetime64[date | int | None] & ~<Protocol with members '__iter__'>) | ... omitted 10 union elements`
prefect (https://github.com/PrefectHQ/prefect)
- src/prefect/_internal/concurrency/calls.py:409:24 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/_internal/concurrency/calls.py:409:24 error[invalid-return-type] Return type does not match returned value: expected `Awaitable[T@Call] | None`, found `(T@Call & <Protocol with members '__await__'>) | Awaitable[T@Call]`
pyodide (https://github.com/pyodide/pyodide)
- src/py/pyodide/webloop.py:120:31 error[invalid-argument-type] Argument to bound method `Future.set_result` is incorrect: Expected `S@then`, found `~Awaitable[object]`
+ src/py/pyodide/webloop.py:120:31 error[invalid-argument-type] Argument to bound method `Future.set_result` is incorrect: Expected `S@then`, found `~<Protocol with members '__await__'>`
pytest (https://github.com/pytest-dev/pytest)
- src/_pytest/assertion/util.py:552:22 error[unresolved-attribute] Object of type `~DataclassInstance & ~type` has no attribute `__attrs_attrs__`
+ src/_pytest/assertion/util.py:552:22 error[unresolved-attribute] Object of type `~<Protocol with members '__dataclass_fields__'> & ~type` has no attribute `__attrs_attrs__`
- src/_pytest/assertion/util.py:555:27 error[unresolved-attribute] Object of type `~DataclassInstance & ~type` has no attribute `_fields`
+ src/_pytest/assertion/util.py:555:27 error[unresolved-attribute] Object of type `~<Protocol with members '__dataclass_fields__'> & ~type` has no attribute `_fields`
scikit-learn (https://github.com/scikit-learn/scikit-learn)
- sklearn/gaussian_process/_gpr.py:287:40 error[unresolved-attribute] Attribute `shape` is not defined on `int & Iterable[object]`, `float & Iterable[object]` in union `(Unknown & Iterable[object]) | (int & Iterable[object]) | (float & Iterable[object])`
+ sklearn/gaussian_process/_gpr.py:287:40 error[unresolved-attribute] Attribute `shape` is not defined on `int & <Protocol with members '__iter__'>`, `float & <Protocol with members '__iter__'>` in union `(Unknown & <Protocol with members '__iter__'>) | (int & <Protocol with members '__iter__'>) | (float & <Protocol with members '__iter__'>)`
- sklearn/gaussian_process/_gpr.py:288:16 error[unresolved-attribute] Attribute `shape` is not defined on `int & Iterable[object]`, `float & Iterable[object]` in union `(Unknown & Iterable[object]) | (int & Iterable[object]) | (float & Iterable[object])`
+ sklearn/gaussian_process/_gpr.py:288:16 error[unresolved-attribute] Attribute `shape` is not defined on `int & <Protocol with members '__iter__'>`, `float & <Protocol with members '__iter__'>` in union `(Unknown & <Protocol with members '__iter__'>) | (int & <Protocol with members '__iter__'>) | (float & <Protocol with members '__iter__'>)`
- sklearn/gaussian_process/_gpr.py:289:30 error[not-subscriptable] Cannot subscript object of type `Iterable[object]` with no `__getitem__` method
+ sklearn/gaussian_process/_gpr.py:289:30 error[not-subscriptable] Cannot subscript object of type `<Protocol with members '__iter__'>` with no `__getitem__` method
- sklearn/gaussian_process/_gpr.py:293:39 error[unresolved-attribute] Attribute `shape` is not defined on `int & Iterable[object]`, `float & Iterable[object]` in union `(Unknown & Iterable[object]) | (int & Iterable[object]) | (float & Iterable[object])`
+ sklearn/gaussian_process/_gpr.py:293:39 error[unresolved-attribute] Attribute `shape` is not defined on `int & <Protocol with members '__iter__'>`, `float & <Protocol with members '__iter__'>` in union `(Unknown & <Protocol with members '__iter__'>) | (int & <Protocol with members '__iter__'>) | (float & <Protocol with members '__iter__'>)`
- sklearn/gaussian_process/kernels.py:1517:55 error[invalid-argument-type] Argument to function `len` is incorrect: Expected `Sized`, found `(Unknown & Iterable[object]) | (int & Iterable[object]) | (float & Iterable[object])`
+ sklearn/gaussian_process/kernels.py:1517:55 error[invalid-argument-type] Argument to function `len` is incorrect: Expected `Sized`, found `(Unknown & <Protocol with members '__iter__'>) | (int & <Protocol with members '__iter__'>) | (float & <Protocol with members '__iter__'>)`
starlette (https://github.com/encode/starlette)
- starlette/routing.py:53:51 error[invalid-assignment] Object of type `(((Request[State], /) -> Awaitable[Response] | Response) & Top[(...) -> Awaitable[object]]) | partial[(Request[State], /) -> CoroutineType[Any, Any, Awaitable[Response] | Response]]` is not assignable to `(Request[State], /) -> Awaitable[Response]`
+ starlette/routing.py:53:51 error[invalid-assignment] Object of type `(((Request[State], /) -> Awaitable[Response] | Response) & Top[(...) -> <Protocol with members '__await__'>]) | partial[(Request[State], /) -> CoroutineType[Any, Any, Awaitable[Response] | Response]]` is not assignable to `(Request[State], /) -> Awaitable[Response]`c925317 to
4c76ad7
Compare
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
4c76ad7 to
16a0a89
Compare
c700e4c to
3edbac5
Compare
Co-authored-by: Codex <noreply@openai.com>
16a0a89 to
caca96d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.