Summary

Comparing branches/commits:
Old: main (merge base) 87dafb87
New: 21442/merge 24a5abb4
Lint Rule Removed Added Changed
Total 53 5 1
invalid-assignment 41 0 0
invalid-argument-type 3 3 1
type-assertion-failure 4 2 0
invalid-return-type 5 0 0

altair (https://github.com/vega/altair)

altair/utils/core.py

[error] invalid-assignment - :219:1 - Object of type `frozenset[str]` is not assignable to `frozenset[Literal["field", "aggregate", "type", "timeUnit"]]`

antidote (https://github.com/Finistere/antidote)

src/antidote/core/_catalog.py

[error] invalid-argument-type - :214:65 - Argument is incorrect: Expected `ReferenceType[CatalogImpl]`, found `ReferenceType[Self@__init__]`

bidict (https://github.com/jab/bidict)

bidict/_base.py

[error] invalid-assignment - :200:9 - Object of type `ReferenceType[Self@inverse]` is not assignable to attribute `_invweak` of type `ReferenceType[BidictBase[KT@BidictBase, VT@BidictBase]] | None`

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

src/bokeh/plotting/contour.py

[error] invalid-argument-type - :249:9 - Argument is incorrect: Expected `GlyphRenderer[Glyph]`, found `GlyphRenderer[MultiPolygons]`
[error] invalid-argument-type - :250:9 - Argument is incorrect: Expected `GlyphRenderer[Glyph]`, found `GlyphRenderer[MultiLine]`

src/bokeh/server/contexts.py

[error] invalid-assignment - :233:13 - Object of type `ReferenceType[BokehSessionContext]` is not assignable to attribute `_session_context` of type `ReferenceType[SessionContext] | None`

core (https://github.com/home-assistant/core)

homeassistant/components/conversation/trace.py

[error] invalid-assignment - :78:1 - Object of type `ContextVar[None]` is not assignable to `ContextVar[ConversationTrace | None]`

homeassistant/helpers/chat_session.py

[error] invalid-assignment - :33:1 - Object of type `ContextVar[None]` is not assignable to `ContextVar[ChatSession | None]`

homeassistant/helpers/template/render_info.py

[error] invalid-assignment - :22:1 - Object of type `ContextVar[None]` is not assignable to `ContextVar[RenderInfo | None]`

homeassistant/helpers/trace.py

[error] invalid-assignment - :102:1 - Object of type `ContextVar[None]` is not assignable to `ContextVar[dict[str, deque[TraceElement]] | None]`
[error] invalid-assignment - :106:1 - Object of type `ContextVar[None]` is not assignable to `ContextVar[list[TraceElement] | None]`
[error] invalid-assignment - :110:1 - Object of type `ContextVar[None]` is not assignable to `ContextVar[list[str] | None]`
[error] invalid-assignment - :116:1 - Object of type `ContextVar[None]` is not assignable to `ContextVar[tuple[str, str] | None]`
[error] invalid-assignment - :120:1 - Object of type `ContextVar[None]` is not assignable to `ContextVar[StopReason | None]`

homeassistant/components/conversation/chat_log.py

[error] invalid-assignment - :29:1 - Object of type `ContextVar[None]` is not assignable to `ContextVar[ChatLog | None]`

homeassistant/config_entries.py

[error] invalid-assignment - :1344:1 - Object of type `ContextVar[None]` is not assignable to `ContextVar[ConfigEntry[Any] | None]`

homeassistant/core.py

[error] invalid-assignment - :1683:9 - Object of type `_OneTimeListener[Mapping[str, Any]]` is not assignable to `_OneTimeListener[_DataT@async_listen_once]`

homeassistant/helpers/entity_platform.py

[error] invalid-assignment - :1248:1 - Object of type `ContextVar[None]` is not assignable to `ContextVar[EntityPlatform | None]`

homeassistant/helpers/script.py

[error] invalid-assignment - :159:1 - Object of type `ContextVar[None]` is not assignable to `ContextVar[list[str] | None]`

homeassistant/helpers/template/context.py

[error] invalid-assignment - :13:1 - Object of type `ContextVar[None]` is not assignable to `ContextVar[tuple[str, str] | None]`

homeassistant/setup.py

[error] invalid-assignment - :38:1 - Object of type `ContextVar[None]` is not assignable to `ContextVar[tuple[str, str | None] | None]`

dd-trace-py (https://github.com/DataDog/dd-trace-py)

ddtrace/_trace/provider.py

[error] invalid-assignment - :17:1 - Object of type `ContextVar[None]` is not assignable to `ContextVar[Span | Context | None]`

ddtrace/internal/ci_visibility/context.py

[error] invalid-assignment - :12:1 - Object of type `ContextVar[None]` is not assignable to `ContextVar[Context | Span | None]`

ddtrace/llmobs/_context.py

[error] invalid-assignment - :14:1 - Object of type `ContextVar[None]` is not assignable to `ContextVar[Context | Span | None]`

ddtrace/appsec/_iast/_iast_request_context_base.py

[error] invalid-assignment - :22:1 - Object of type `ContextVar[None]` is not assignable to `ContextVar[int | None]`

dedupe (https://github.com/dedupeio/dedupe)

dedupe/predicates.py

[error] invalid-return-type - :116:20 - Return type does not match returned value: expected `frozenset[Literal["0", "1"]]`, found `frozenset[str]`
[error] invalid-return-type - :118:20 - Return type does not match returned value: expected `frozenset[Literal["0", "1"]]`, found `frozenset[str]`

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

freqtrade/persistence/models.py

[error] invalid-assignment - :29:1 - Object of type `ContextVar[None]` is not assignable to `ContextVar[str | None]`

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

mesonbuild/cmake/executor.py

[error] invalid-assignment - :29:5 - Object of type `PerMachine[None]` is not assignable to `PerMachine[ExternalProgram | None]`
[error] invalid-assignment - :30:5 - Object of type `PerMachine[None]` is not assignable to `PerMachine[str | None]`

mesonbuild/cmake/interpreter.py

[error] invalid-argument-type - :1004:70 - Argument is incorrect: Expected `int`, found `str | int | Path | BaseNode`

mesonbuild/dependencies/cmake.py

[error] invalid-assignment - :35:5 - Object of type `PerMachine[None]` is not assignable to `PerMachine[CMakeInfo | None]`

mesonbuild/dependencies/pkgconfig.py

[error] invalid-assignment - :36:5 - Object of type `PerMachine[None]` is not assignable to `PerMachine[ExternalProgram | None]`

mesonbuild/modules/rust.py

[error] invalid-assignment - :90:5 - Object of type `PerMachine[None]` is not assignable to `PerMachine[ExternalProgram | None]`

mesonbuild/mparser.py

[error] invalid-argument-type - :702:65 - Argument is incorrect: Expected `int`, found `None`

mesonbuild/utils/universal.py

[error] invalid-return-type - :588:16 - Return type does not match returned value: expected `PerMachine[_T@PerMachineDefaultable]`, found `PerMachine[_T@PerMachineDefaultable & ~None]`
[error] invalid-return-type - :622:16 - Return type does not match returned value: expected `PerThreeMachine[_T@PerThreeMachineDefaultable]`, found `PerThreeMachine[_T@PerThreeMachineDefaultable & ~None]`

run_project_tests.py

[error] invalid-assignment - :557:5 - Object of type `PerMachine[None]` is not assignable to attribute `class_cmakeinfo` of type `PerMachine[CMakeInfo | None]`
[error] invalid-assignment - :560:5 - Object of type `PerMachine[None]` is not assignable to attribute `pkg_bin_per_machine` of type `PerMachine[ExternalProgram | None]`

mongo-python-driver (https://github.com/mongodb/mongo-python-driver)

pymongo/_csot.py

[error] invalid-assignment - :30:1 - Object of type `ContextVar[None]` is not assignable to `ContextVar[int | float | None]`
[error] invalid-assignment - :31:1 - Object of type `ContextVar[float]` is not assignable to `ContextVar[int | float]`
[error] invalid-assignment - :32:1 - Object of type `ContextVar[float]` is not assignable to `ContextVar[int | float]`

openlibrary (https://github.com/internetarchive/openlibrary)

openlibrary/plugins/upstream/mybooks.py

[error] invalid-argument-type - :468:13 - Argument to function `__new__` is incorrect: Expected `SupportsKeysAndGetItem[Literal["want-to-read", "already-read", "currently-reading"], Literal["Want to Read", "Already Read", "Currently Reading"]]`, found `dict[Unknown | str, Unknown | str]`

pandas-stubs (https://github.com/pandas-dev/pandas-stubs)

tests/test_natype.py

[error] type-assertion-failure - :80:11 - Argument does not have asserted type `Index[int]`
[error] type-assertion-failure - :160:11 - Argument does not have asserted type `Index[int]`

tests/test_pandas.py

[error] type-assertion-failure - :1037:11 - Argument does not have asserted type `@Todo`
[error] type-assertion-failure - :1041:11 - Argument does not have asserted type `@Todo`
[error] type-assertion-failure - :1036:11 - Argument does not have asserted type `Series[Any]`
[error] type-assertion-failure - :1040:11 - Argument does not have asserted type `Series[Any]`

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

src/prefect/server/database/configurations.py

[error] invalid-assignment - :40:1 - Object of type `ContextVar[None]` is not assignable to `ContextVar[str | None]`

src/prefect/context.py

[error] invalid-assignment - :762:1 - Object of type `ContextVar[None]` is not assignable to `ContextVar[UUID | None]`
[error] invalid-assignment - :763:1 - Object of type `ContextVar[None]` is not assignable to `ContextVar[dict[str, Any] | None]`

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

pydantic/_internal/_generics.py

[error] invalid-assignment - :96:1 - Object of type `ContextVar[None]` is not assignable to `ContextVar[WeakValueDictionary[tuple[Any, Any, tuple[Any, ...]], type[BaseModel]] | None]`
[error] invalid-assignment - :395:1 - Object of type `ContextVar[None]` is not assignable to `ContextVar[set[str] | None]`

pyinstrument (https://github.com/joerick/pyinstrument)

pyinstrument/stack_sampler.py

[error] invalid-assignment - :49:1 - Object of type `ContextVar[None]` is not assignable to `ContextVar[object]`

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

src/schemathesis/specs/openapi/schemas.py

[error] invalid-assignment - :430:9 - Object of type `APIOperation[Unknown, OpenApiResponses, OpenApiSecurityParameters]` is not assignable to `APIOperation[OperationParameter, ResponsesContainer[Unknown], OpenApiSecurityParameters]`

setuptools (https://github.com/pypa/setuptools)

setuptools/_vendor/typing_extensions.py

[error] invalid-argument-type - :3546:30 -
Old: Argument to function `__new__` is incorrect: Expected `Iterable[Unknown]`, found `object`
New: Argument to function `__new__` is incorrect: Expected `Iterable[str]`, found `object`

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

src/trio/_core/_run.py

[error] invalid-assignment - :1452:21 - Object of type `_TaskStatus[None]` is not assignable to `_TaskStatus[object]`

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

zerver/lib/typed_endpoint.py

[error] invalid-return-type - :271:12 - Return type does not match returned value: expected `FuncParam[T@parse_single_parameter]`, found `FuncParam[Any & ~<class '_empty'>]`