Summary

Comparing branches/commits:
Old: main (merge base) 5b6d0d17
New: 19669/merge 7049d480
Lint Rule Removed Added Changed
Total 95 10 7
possibly-unbound-attribute 73 0 0
invalid-argument-type 8 4 4
invalid-assignment 5 3 0
not-iterable 5 0 0
invalid-return-type 0 3 0
parameter-already-assigned 3 0 0
unsupported-operator 0 0 3
type-assertion-failure 1 0 0

Expression (https://github.com/cognitedata/Expression)

expression/extra/option/pipeline.py

[error] invalid-argument-type - :91:19 -
Old: Argument to function `reduce` is incorrect: Expected `(def Some[_T1](value: _T1@Some) -> Option[_T1@Some], Unknown, /) -> def Some[_T1](value: _T1@Some) -> Option[_T1@Some]`, found `def reducer(acc: (Any, /) -> Option[Any], fn: (Any, /) -> Option[Any]) -> (Any, /) -> Option[Any]`
New: Argument to function `reduce` is incorrect: Expected `(def Some[_T1](value: _T1@Some) -> Option[_T1@Some], (Any, /) -> Option[Any], /) -> def Some[_T1](value: _T1@Some) -> Option[_T1@Some]`, found `def reducer(acc: (Any, /) -> Option[Any], fn: (Any, /) -> Option[Any]) -> (Any, /) -> Option[Any]`

expression/extra/result/pipeline.py

[error] invalid-argument-type - :96:19 -
Old: Argument to function `reduce` is incorrect: Expected `(def Ok[_TSource](value: _TSource@Ok) -> Result[_TSource@Ok, Any], Unknown, /) -> def Ok[_TSource](value: _TSource@Ok) -> Result[_TSource@Ok, Any]`, found `def reducer(acc: (Any, /) -> Result[Any, Any], fn: (Any, /) -> Result[Any, Any]) -> (Any, /) -> Result[Any, Any]`
New: Argument to function `reduce` is incorrect: Expected `(def Ok[_TSource](value: _TSource@Ok) -> Result[_TSource@Ok, Any], (Any, /) -> Result[Any, Any], /) -> def Ok[_TSource](value: _TSource@Ok) -> Result[_TSource@Ok, Any]`, found `def reducer(acc: (Any, /) -> Result[Any, Any], fn: (Any, /) -> Result[Any, Any]) -> (Any, /) -> Result[Any, Any]`

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

tests/test_runserver_watch.py

[error] invalid-assignment - :108:5 - Object of type `set[tuple[MagicMock, str]]` is not assignable to `set[tuple[WebSocketResponse, str]]`

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"]]`

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

src/anyio/_backends/_trio.py

[error] not-iterable - :909:47 - Object of type `MemoryObjectSendStream[Unknown] | MemoryObjectReceiveStream[Unknown]` may not be async-iterable

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

src/bokeh/layouts.py

[error] invalid-return-type - :666:16 - Return type does not match returned value: expected `list[L@_parse_children_arg]`, found `list[L@_parse_children_arg | list[L@_parse_children_arg]]`

src/bokeh/util/serialization.py

[error] parameter-already-assigned - :146:47 - Multiple values provided for parameter `tzinfo` of function `__new__`

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]`

parso (https://github.com/davidhalter/parso)

parso/python/tokenize.py

[error] invalid-argument-type - :230:42 -
Old: Argument is incorrect: Expected `tuple[str]`, found `set[Unknown]`
New: Argument is incorrect: Expected `tuple[str]`, found `set[str]`

pywin32 (https://github.com/mhammond/pywin32)

com/win32comext/shell/demos/create_link.py

[error] invalid-argument-type - :65:13 -
Old: Argument to function `__new__` is incorrect: Expected `(str, Unknown, /) -> Unknown`, found `None`
New: Argument to function `__new__` is incorrect: Expected `(str, Literal["SetPath", "SetArguments", "SetDescription", "SetWorkingDirectory"], /) -> Unknown`, found `None`

scikit-learn (https://github.com/scikit-learn/scikit-learn)

sklearn/cluster/_hdbscan/hdbscan.py

[error] unsupported-operator - :131:8 -
Old: Operator `>` is not supported for types `tuple[int, @Todo(Support for `typing.TypeAlias`)]` and `Literal[1]`
New: Operator `>` is not supported for types `tuple[int, @Todo(Support for `typing.TypeAlias`)]` and `int`, in comparing `tuple[int, @Todo(Support for `typing.TypeAlias`)]` with `Literal[1]`

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

scipy/integrate/tests/test_quadrature.py

[error] invalid-argument-type - :124:31 - Argument to bound method `insert` is incorrect: Expected `int`, found `slice[Any, _StartT_co@slice, _StartT_co@slice | _StopT_co@slice]`
[error] invalid-argument-type - :145:31 - Argument to bound method `insert` is incorrect: Expected `int`, found `slice[Any, _StartT_co@slice, _StartT_co@slice | _StopT_co@slice]`

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

starlette/middleware/base.py

[warning] possibly-unbound-attribute - :134:27 - Attribute `send` on type `MemoryObjectSendStream[Unknown] | MemoryObjectReceiveStream[Unknown]` is possibly unbound
[warning] possibly-unbound-attribute - :151:33 - Attribute `receive` on type `MemoryObjectSendStream[Unknown] | MemoryObjectReceiveStream[Unknown]` is possibly unbound
[warning] possibly-unbound-attribute - :154:37 - Attribute `receive` on type `MemoryObjectSendStream[Unknown] | MemoryObjectReceiveStream[Unknown]` is possibly unbound
[error] not-iterable - :165:38 - Object of type `MemoryObjectSendStream[Unknown] | MemoryObjectReceiveStream[Unknown]` may not be async-iterable

starlette/testclient.py

[warning] possibly-unbound-attribute - :143:40 - Attribute `receive` on type `MemoryObjectSendStream[Unknown] | MemoryObjectReceiveStream[Unknown]` is possibly unbound
[warning] possibly-unbound-attribute - :143:60 - Attribute `send` on type `MemoryObjectSendStream[Unknown] | MemoryObjectReceiveStream[Unknown]` is possibly unbound
[error] invalid-argument-type - :691:52 - Argument is incorrect: Expected `ObjectReceiveStream[Unknown]`, found `MemoryObjectSendStream[Unknown] | MemoryObjectReceiveStream[Unknown]`
[error] invalid-argument-type - :691:52 - Argument is incorrect: Expected `ObjectSendStream[Unknown]`, found `MemoryObjectSendStream[Unknown] | MemoryObjectReceiveStream[Unknown]`
[error] invalid-argument-type - :692:55 - Argument is incorrect: Expected `ObjectReceiveStream[Unknown]`, found `MemoryObjectSendStream[Unknown] | MemoryObjectReceiveStream[Unknown]`
[error] invalid-argument-type - :692:55 - Argument is incorrect: Expected `ObjectSendStream[Unknown]`, found `MemoryObjectSendStream[Unknown] | MemoryObjectReceiveStream[Unknown]`

tests/test_websockets.py

[error] invalid-assignment - :213:5 - Object of type `MemoryObjectSendStream[Unknown] | MemoryObjectReceiveStream[Unknown]` is not assignable to `ObjectSendStream[MutableMapping[str, Any]]`
[error] invalid-assignment - :213:18 - Object of type `MemoryObjectSendStream[Unknown] | MemoryObjectReceiveStream[Unknown]` is not assignable to `ObjectReceiveStream[MutableMapping[str, Any]]`

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

sympy/matrices/expressions/slice.py

[error] unsupported-operator - :10:13 -
Old: Operator `<` is not supported for types `tuple[Unknown, Unknown, Unknown]` and `Literal[0]`, in comparing `(Unknown & ~slice[Any, Any, Any] & ~tuple[Unknown, ...] & ~list[Unknown] & ~Tuple) | (tuple[Unknown, Unknown, Unknown] & ~tuple[Unknown, ...])` with `Literal[0]`
New: Operator `<` is not supported for types `tuple[Unknown, Unknown, Unknown]` and `int`, in comparing `(Unknown & ~slice[Any, Any, Any] & ~tuple[Unknown, ...] & ~list[Unknown] & ~Tuple) | (tuple[Unknown, Unknown, Unknown] & ~tuple[Unknown, ...])` with `Literal[0]`

sympy/matrices/matrixbase.py

[error] invalid-argument-type - :574:23 - Argument to function `reduce` is incorrect: Expected `(Self@hstack, Self@hstack, /) -> Self@hstack`, found `def row_join(self, other: Self@row_join) -> Self@row_join`
[error] invalid-argument-type - :929:23 - Argument to function `reduce` is incorrect: Expected `(Self@vstack, Self@vstack, /) -> Self@vstack`, found `def col_join(self, other: Self@col_join, /) -> Self@col_join`

sympy/tensor/array/expressions/from_array_to_matrix.py

[error] invalid-assignment - :149:5 - Object of type `list[Basic]` is not assignable to `list[Basic | None]`

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

src/trio/_tests/test_channel.py

[warning] possibly-unbound-attribute - :30:5 - Attribute `send_nowait` on type `MemorySendChannel[int | str | None] | MemoryReceiveChannel[int | str | None]` is possibly unbound
[warning] possibly-unbound-attribute - :32:15 - Attribute `send` on type `MemorySendChannel[int | str | None] | MemoryReceiveChannel[int | str | None]` is possibly unbound
[warning] possibly-unbound-attribute - :34:9 - Attribute `send_nowait` on type `MemorySendChannel[int | str | None] | MemoryReceiveChannel[int | str | None]` is possibly unbound
[warning] possibly-unbound-attribute - :37:22 - Attribute `receive` on type `MemorySendChannel[int | str | None] | MemoryReceiveChannel[int | str | None]` is possibly unbound
[warning] possibly-unbound-attribute - :38:12 - Attribute `receive_nowait` on type `MemorySendChannel[int | str | None] | MemoryReceiveChannel[int | str | None]` is possibly unbound
[warning] possibly-unbound-attribute - :40:9 - Attribute `receive_nowait` on type `MemorySendChannel[int | str | None] | MemoryReceiveChannel[int | str | None]` is possibly unbound
[warning] possibly-unbound-attribute - :42:5 - Attribute `send_nowait` on type `MemorySendChannel[int | str | None] | MemoryReceiveChannel[int | str | None]` is possibly unbound
[warning] possibly-unbound-attribute - :45:15 - Attribute `send` on type `MemorySendChannel[int | str | None] | MemoryReceiveChannel[int | str | None]` is possibly unbound
[warning] possibly-unbound-attribute - :47:9 - Attribute `send_nowait` on type `MemorySendChannel[int | str | None] | MemoryReceiveChannel[int | str | None]` is possibly unbound
[warning] possibly-unbound-attribute - :52:12 - Attribute `receive_nowait` on type `MemorySendChannel[int | str | None] | MemoryReceiveChannel[int | str | None]` is possibly unbound
[warning] possibly-unbound-attribute - :54:15 - Attribute `receive` on type `MemorySendChannel[int | str | None] | MemoryReceiveChannel[int | str | None]` is possibly unbound
[warning] possibly-unbound-attribute - :57:15 - Attribute `receive` on type `MemorySendChannel[int | str | None] | MemoryReceiveChannel[int | str | None]` is possibly unbound
[warning] possibly-unbound-attribute - :59:9 - Attribute `receive_nowait` on type `MemorySendChannel[int | str | None] | MemoryReceiveChannel[int | str | None]` is possibly unbound
[warning] possibly-unbound-attribute - :66:15 - Attribute `receive` on type `MemorySendChannel[str] | MemoryReceiveChannel[str]` is possibly unbound
[warning] possibly-unbound-attribute - :68:11 - Attribute `send` on type `MemorySendChannel[str] | MemoryReceiveChannel[str]` is possibly unbound
[error] not-iterable - :86:41 - Object of type `MemorySendChannel[int] | MemoryReceiveChannel[int]` may not be async-iterable
[warning] possibly-unbound-attribute - :108:23 - Attribute `send` on type `MemorySendChannel[int] | MemoryReceiveChannel[int]` is possibly unbound
[warning] possibly-unbound-attribute - :132:9 - Attribute `send_nowait` on type `MemorySendChannel[None] | MemoryReceiveChannel[None]` is possibly unbound
[warning] possibly-unbound-attribute - :134:15 - Attribute `send` on type `MemorySendChannel[None] | MemoryReceiveChannel[None]` is possibly unbound
[warning] possibly-unbound-attribute - :138:9 - Attribute `receive_nowait` on type `MemorySendChannel[None] | MemoryReceiveChannel[None]` is possibly unbound
[warning] possibly-unbound-attribute - :140:15 - Attribute `receive` on type `MemorySendChannel[None] | MemoryReceiveChannel[None]` is possibly unbound
[warning] possibly-unbound-attribute - :151:9 - Attribute `send_nowait` on type `MemorySendChannel[None] | MemoryReceiveChannel[None]` is possibly unbound
[warning] possibly-unbound-attribute - :153:15 - Attribute `send` on type `MemorySendChannel[None] | MemoryReceiveChannel[None]` is possibly unbound
[warning] possibly-unbound-attribute - :168:9 - Attribute `receive_nowait` on type `MemorySendChannel[int] | MemoryReceiveChannel[int]` is possibly unbound
[warning] possibly-unbound-attribute - :170:15 - Attribute `receive` on type `MemorySendChannel[int] | MemoryReceiveChannel[int]` is possibly unbound
[warning] possibly-unbound-attribute - :190:9 - Attribute `send_nowait` on type `MemorySendChannel[None] | MemoryReceiveChannel[None]` is possibly unbound
[warning] possibly-unbound-attribute - :192:15 - Attribute `send` on type `MemorySendChannel[None] | MemoryReceiveChannel[None]` is possibly unbound
[warning] possibly-unbound-attribute - :196:9 - Attribute `receive_nowait` on type `MemorySendChannel[None] | MemoryReceiveChannel[None]` is possibly unbound
[warning] possibly-unbound-attribute - :198:15 - Attribute `receive` on type `MemorySendChannel[None] | MemoryReceiveChannel[None]` is possibly unbound
[warning] possibly-unbound-attribute - :209:9 - Attribute `send_nowait` on type `MemorySendChannel[None] | MemoryReceiveChannel[None]` is possibly unbound
[warning] possibly-unbound-attribute - :211:15 - Attribute `send` on type `MemorySendChannel[None] | MemoryReceiveChannel[None]` is possibly unbound
[warning] possibly-unbound-attribute - :226:9 - Attribute `receive_nowait` on type `MemorySendChannel[None] | MemoryReceiveChannel[None]` is possibly unbound
[warning] possibly-unbound-attribute - :228:15 - Attribute `receive` on type `MemorySendChannel[None] | MemoryReceiveChannel[None]` is possibly unbound
[warning] possibly-unbound-attribute - :237:5 - Attribute `send_nowait` on type `MemorySendChannel[None] | MemoryReceiveChannel[None]` is possibly unbound
[warning] possibly-unbound-attribute - :249:5 - Attribute `send_nowait` on type `MemorySendChannel[None] | MemoryReceiveChannel[None]` is possibly unbound
[warning] possibly-unbound-attribute - :255:9 - Attribute `send_nowait` on type `MemorySendChannel[None] | MemoryReceiveChannel[None]` is possibly unbound
[warning] possibly-unbound-attribute - :266:19 - Attribute `send` on type `MemorySendChannel[str] | MemoryReceiveChannel[str]` is possibly unbound
[warning] possibly-unbound-attribute - :269:15 - Attribute `send` on type `MemorySendChannel[str] | MemoryReceiveChannel[str]` is possibly unbound
[warning] possibly-unbound-attribute - :276:22 - Attribute `receive` on type `MemorySendChannel[str] | MemoryReceiveChannel[str]` is possibly unbound
[warning] possibly-unbound-attribute - :287:19 - Attribute `receive` on type `MemorySendChannel[str] | MemoryReceiveChannel[str]` is possibly unbound
[warning] possibly-unbound-attribute - :290:22 - Attribute `receive` on type `MemorySendChannel[str] | MemoryReceiveChannel[str]` is possibly unbound
[warning] possibly-unbound-attribute - :297:15 - Attribute `send` on type `MemorySendChannel[str] | MemoryReceiveChannel[str]` is possibly unbound
[warning] possibly-unbound-attribute - :306:13 - Attribute `send_nowait` on type `MemorySendChannel[int] | MemoryReceiveChannel[int]` is possibly unbound
[error] not-iterable - :308:29 - Object of type `MemorySendChannel[int] | MemoryReceiveChannel[int]` may not be async-iterable
[warning] possibly-unbound-attribute - :324:5 - Attribute `send_nowait` on type `MemorySendChannel[None] | MemoryReceiveChannel[None]` is possibly unbound
[warning] possibly-unbound-attribute - :338:9 - Attribute `send_nowait` on type `MemorySendChannel[None] | MemoryReceiveChannel[None]` is possibly unbound
[warning] possibly-unbound-attribute - :340:28 - Attribute `send` on type `MemorySendChannel[None] | MemoryReceiveChannel[None]` is possibly unbound
[warning] possibly-unbound-attribute - :341:28 - Attribute `send` on type `MemorySendChannel[None] | MemoryReceiveChannel[None]` is possibly unbound
[warning] possibly-unbound-attribute - :350:13 - Attribute `receive_nowait` on type `MemorySendChannel[None] | MemoryReceiveChannel[None]` is possibly unbound
[warning] possibly-unbound-attribute - :355:28 - Attribute `receive` on type `MemorySendChannel[None] | MemoryReceiveChannel[None]` is possibly unbound
[warning] possibly-unbound-attribute - :366:5 - Attribute `send_nowait` on type `MemorySendChannel[int | None] | MemoryReceiveChannel[int | None]` is possibly unbound
[warning] possibly-unbound-attribute - :367:12 - Attribute `receive_nowait` on type `MemorySendChannel[int | None] | MemoryReceiveChannel[int | None]` is possibly unbound
[warning] possibly-unbound-attribute - :368:5 - Attribute `send_nowait` on type `MemorySendChannel[int | None] | MemoryReceiveChannel[int | None]` is possibly unbound
[warning] possibly-unbound-attribute - :369:12 - Attribute `receive_nowait` on type `MemorySendChannel[int | None] | MemoryReceiveChannel[int | None]` is possibly unbound
[warning] possibly-unbound-attribute - :383:9 - Attribute `send_nowait` on type `MemorySendChannel[int | None] | MemoryReceiveChannel[int | None]` is possibly unbound
[warning] possibly-unbound-attribute - :385:13 - Attribute `receive_nowait` on type `MemorySendChannel[int | None] | MemoryReceiveChannel[int | None]` is possibly unbound
[warning] possibly-unbound-attribute - :392:5 - Attribute `send_nowait` on type `MemorySendChannel[int | None] | MemoryReceiveChannel[int | None]` is possibly unbound
[warning] possibly-unbound-attribute - :394:9 - Attribute `send_nowait` on type `MemorySendChannel[int | None] | MemoryReceiveChannel[int | None]` is possibly unbound
[warning] possibly-unbound-attribute - :396:28 - Attribute `send` on type `MemorySendChannel[int | None] | MemoryReceiveChannel[int | None]` is possibly unbound
[warning] possibly-unbound-attribute - :398:16 - Attribute `receive_nowait` on type `MemorySendChannel[int | None] | MemoryReceiveChannel[int | None]` is possibly unbound
[warning] possibly-unbound-attribute - :400:13 - Attribute `send_nowait` on type `MemorySendChannel[int | None] | MemoryReceiveChannel[int | None]` is possibly unbound
[warning] possibly-unbound-attribute - :401:23 - Attribute `receive` on type `MemorySendChannel[int | None] | MemoryReceiveChannel[int | None]` is possibly unbound
[warning] possibly-unbound-attribute - :407:9 - Attribute `receive_nowait` on type `MemorySendChannel[int] | MemoryReceiveChannel[int]` is possibly unbound
[warning] possibly-unbound-attribute - :409:9 - Attribute `send_nowait` on type `MemorySendChannel[int] | MemoryReceiveChannel[int]` is possibly unbound
[warning] possibly-unbound-attribute - :418:26 - Attribute `receive` on type `MemorySendChannel[int] | MemoryReceiveChannel[int]` is possibly unbound
[warning] possibly-unbound-attribute - :420:9 - Attribute `receive_nowait` on type `MemorySendChannel[int] | MemoryReceiveChannel[int]` is possibly unbound

src/trio/_channel.py

[error] invalid-argument-type - :546:38 - Argument to bound method `__init__` is incorrect: Expected `MemoryReceiveChannel[Unknown]`, found `MemorySendChannel[T@as_safe_channel] | MemoryReceiveChannel[T@as_safe_channel]`

src/trio/_core/_tests/test_guest_mode.py

[error] invalid-argument-type - :524:66 - Argument to function `aio_pingpong` is incorrect: Expected `MemorySendChannel[int]`, found `MemorySendChannel[int] | MemoryReceiveChannel[int]`
[error] not-iterable - :532:24 - Object of type `MemorySendChannel[int] | MemoryReceiveChannel[int]` may not be async-iterable

src/trio/_dtls.py

[warning] possibly-unbound-attribute - :748:9 - Attribute `send_nowait` on type `Unknown | MemorySendChannel[DTLSChannel] | MemoryReceiveChannel[DTLSChannel]` is possibly unbound
[warning] possibly-unbound-attribute - :789:29 - Attribute `send_nowait` on type `Unknown | MemorySendChannel[bytes] | MemoryReceiveChannel[bytes]` is possibly unbound

src/trio/_tests/type_tests/raisesgroup.py

[error] invalid-assignment - :30:5 - Object of type `ExceptionGroup[Exception]` is not assignable to `ExceptionGroup[ValueError] | ValueError`
[error] type-assertion-failure - :32:9 - Argument does not have asserted type `ExceptionGroup[ValueError]`
[error] invalid-assignment - :40:5 - Object of type `BaseExceptionGroup[BaseException]` is not assignable to `BaseExceptionGroup[KeyboardInterrupt]`
[error] invalid-assignment - :154:5 - Object of type `ExceptionGroup[Exception]` is not assignable to `ExceptionGroup[ExceptionGroup[ValueError]]`

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

src/urllib3/filepost.py

[warning] possibly-unbound-attribute - :72:9 - Attribute `write` on type `Unknown | tuple[bytes, int]` is possibly unbound
[error] invalid-argument-type - :72:16 - Argument to bound method `__call__` is incorrect: Expected `str`, found `BytesIO`
[warning] possibly-unbound-attribute - :79:13 - Attribute `write` on type `Unknown | tuple[bytes, int]` is possibly unbound
[error] invalid-argument-type - :79:20 - Argument to bound method `__call__` is incorrect: Expected `str`, found `BytesIO`

vision (https://github.com/pytorch/vision)

torchvision/transforms/transforms.py

[error] unsupported-operator - :1779:16 -
Old: Operator `<=` is not supported for types `tuple[float, float]` and `Literal[0]`, in comparing `(Unknown & Number) | (tuple[float, float] & Number)` with `Literal[0]`
New: Operator `<=` is not supported for types `tuple[float, float]` and `int`, in comparing `(Unknown & Number) | (tuple[float, float] & Number)` with `Literal[0]`

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

zerver/lib/timestamp.py

[error] parameter-already-assigned - :21:42 - Multiple values provided for parameter `tzinfo` of function `__new__`
[error] parameter-already-assigned - :26:42 - Multiple values provided for parameter `tzinfo` of function `__new__`