Summary

Comparing branches/commits:
Old: main (merge base) 911d5cc9
New: 19866/merge 6ee90c7c
Lint Rule Removed Added Changed
Total 124 3 4
possibly-unbound-attribute 43 0 2
invalid-return-type 17 0 0
unresolved-attribute 17 0 0
invalid-argument-type 12 0 2
redundant-cast 14 0 0
unsupported-operator 6 0 0
non-subscriptable 5 0 0
no-matching-overload 4 0 0
index-out-of-bounds 3 0 0
invalid-assignment 3 0 0
unused-ignore-comment 0 3 0

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

aiohttp/client_middleware_digest_auth.py

[warning] possibly-unbound-attribute - :399:23 - Attribute `get` on type `Unknown | under_cached_property[Unknown]` is possibly unbound
[warning] possibly-unbound-attribute - :428:18 - Attribute `origin` on type `Unknown | under_cached_property[Unknown]` is possibly unbound

aiohttp/web_middlewares.py

[warning] possibly-unbound-attribute - :84:23 - Attribute `route` on type `Unknown | under_cached_property[Unknown]` is possibly unbound
[error] unsupported-operator - :86:16 - Operator `in` is not supported for types `str` and `under_cached_property[Unknown]`, in comparing `Literal["?"]` with `Unknown | under_cached_property[Unknown]`
[warning] possibly-unbound-attribute - :87:31 - Attribute `split` on type `Unknown | under_cached_property[Unknown]` is possibly unbound
[error] no-matching-overload - :94:39 - No overload of function `sub` matches arguments
[warning] possibly-unbound-attribute - :95:37 - Attribute `endswith` on type `Unknown | under_cached_property[Unknown]` is possibly unbound
[error] unsupported-operator - :96:39 - Operator `+` is unsupported between objects of type `Unknown | under_cached_property[Unknown]` and `Literal["/"]`
[warning] possibly-unbound-attribute - :97:33 - Attribute `endswith` on type `Unknown | under_cached_property[Unknown]` is possibly unbound
[error] non-subscriptable - :98:39 - Cannot subscript object of type `under_cached_property[Unknown]` with no `__getitem__` method
[error] unsupported-operator - :100:58 - Operator `+` is unsupported between objects of type `Unknown | under_cached_property[Unknown]` and `Literal["/"]`
[warning] possibly-unbound-attribute - :101:51 - Attribute `endswith` on type `Unknown | under_cached_property[Unknown]` is possibly unbound
[error] no-matching-overload - :102:34 - No overload of function `sub` matches arguments
[error] unsupported-operator - :109:42 - Operator `+` is unsupported between objects of type `Unknown | under_cached_property[Unknown]` and `Unknown | Literal[""]`
[warning] possibly-unbound-attribute - :119:16 - Attribute `current_app` on type `Unknown | under_cached_property[Unknown]` is possibly unbound
[error] invalid-assignment - :120:9 - Object of type `Application` is not assignable to attribute `current_app` on type `Unknown | under_cached_property[Unknown]`

aiohttp/client.py

[warning] possibly-unbound-attribute - :771:33 - Attribute `get` on type `@Todo(Inference of subscript on special form) | under_cached_property[Unknown]` is possibly unbound
[warning] possibly-unbound-attribute - :771:68 - Attribute `get` on type `@Todo(Inference of subscript on special form) | under_cached_property[Unknown]` is possibly unbound

aiohttp/connector.py

[error] invalid-argument-type - :1545:29 - Argument to bound method `__init__` is incorrect: Expected `RequestInfo`, found `Unknown | under_cached_property[Unknown]`
[error] invalid-argument-type - :1546:29 - Argument to bound method `__init__` is incorrect: Expected `tuple[ClientResponse, ...]`, found `Unknown | under_cached_property[Unknown]`
[error] invalid-argument-type - :1549:29 - Argument to bound method `__init__` is incorrect: Expected `MultiMapping[str] | None`, found `Unknown | under_cached_property[Unknown]`

aiohttp/web_app.py

[warning] possibly-unbound-attribute - :394:12 - Attribute `get` on type `Unknown | under_cached_property[Unknown]` is possibly unbound

aiohttp/web_fileresponse.py

[warning] possibly-unbound-attribute - :206:31 - Attribute `timestamp` on type `(Unknown & ~None) | under_cached_property[Unknown]` is possibly unbound
[warning] possibly-unbound-attribute - :219:32 - Attribute `timestamp` on type `(Unknown & ~None) | under_cached_property[Unknown]` is possibly unbound
[warning] possibly-unbound-attribute - :255:27 - Attribute `get` on type `Unknown | under_cached_property[Unknown]` is possibly unbound
[warning] possibly-unbound-attribute - :309:67 - Attribute `timestamp` on type `(Unknown & ~None) | under_cached_property[Unknown]` is possibly unbound
[warning] possibly-unbound-attribute - :319:25 - Attribute `start` on type `Unknown | under_cached_property[Unknown]` is possibly unbound
[warning] possibly-unbound-attribute - :320:38 - Attribute `stop` on type `Unknown | under_cached_property[Unknown]` is possibly unbound

aiohttp/web_log.py

[warning] possibly-unbound-attribute - :125:16 - Attribute `get` on type `Unknown | under_cached_property[Unknown]` is possibly unbound
[error] invalid-return-type - :137:16 - Return type does not match returned value: expected `str`, found `(Unknown & ~None) | under_cached_property[Unknown] | Literal["-"]`
[warning] possibly-unbound-attribute - :155:13 - Attribute `major` on type `Unknown | under_cached_property[Unknown]` is possibly unbound
[warning] possibly-unbound-attribute - :156:13 - Attribute `minor` on type `Unknown | under_cached_property[Unknown]` is possibly unbound

aiohttp/web_protocol.py

[warning] possibly-unbound-attribute - :791:31 - Attribute `get` on type `Unknown | under_cached_property[Unknown]` is possibly unbound

aiohttp/web_response.py

[warning] possibly-unbound-attribute - :348:27 - Attribute `get` on type `Unknown | under_cached_property[Unknown]` is possibly unbound
[error] invalid-argument-type - :689:45 - Argument to function `should_remove_content_length` is incorrect: Expected `str`, found `Unknown | under_cached_property[Unknown]`

aiohttp/web_urldispatcher.py

[warning] possibly-unbound-attribute - :321:14 - Attribute `get` on type `Unknown | under_cached_property[Unknown]` is possibly unbound
[warning] possibly-unbound-attribute - :366:39 - Attribute `path_safe` on type `Unknown | under_cached_property[Unknown]` is possibly unbound
[warning] possibly-unbound-attribute - :625:16 - Attribute `path_safe` on type `Unknown | under_cached_property[Unknown]` is possibly unbound
[error] non-subscriptable - :644:19 - Cannot subscript object of type `under_cached_property[Unknown]` with no `__getitem__` method
[warning] possibly-unbound-attribute - :821:16 - Attribute `get` on type `Unknown | under_cached_property[Unknown]` is possibly unbound
[warning] possibly-unbound-attribute - :1014:20 - Attribute `path_safe` on type `Unknown | under_cached_property[Unknown]` is possibly unbound
[error] invalid-argument-type - :1042:56 - Argument to bound method `__init__` is incorrect: Expected `str`, found `Unknown | under_cached_property[Unknown]`

aiohttp/web_ws.py

[warning] possibly-unbound-attribute - :229:27 - Attribute `get` on type `Unknown | under_cached_property[Unknown]` is possibly unbound
[warning] possibly-unbound-attribute - :234:26 - Attribute `get` on type `Unknown | under_cached_property[Unknown]` is possibly unbound
[warning] possibly-unbound-attribute - :237:29 - Attribute `get` on type `Unknown | under_cached_property[Unknown]` is possibly unbound
[warning] possibly-unbound-attribute - :240:21 - Attribute `get` on type `Unknown | under_cached_property[Unknown]` is possibly unbound
[error] unsupported-operator - :246:12 - Operator `in` is not supported for types `istr` and `under_cached_property[Unknown]`, in comparing `istr` with `Unknown | under_cached_property[Unknown]`
[error] non-subscriptable - :249:30 - Cannot subscript object of type `under_cached_property[Unknown]` with no `__getitem__` method
[warning] possibly-unbound-attribute - :266:19 - Attribute `get` on type `Unknown | under_cached_property[Unknown]` is possibly unbound
[warning] possibly-unbound-attribute - :271:15 - Attribute `get` on type `Unknown | under_cached_property[Unknown]` is possibly unbound
[warning] possibly-unbound-attribute - :292:26 - Attribute `get` on type `Unknown | under_cached_property[Unknown]` is possibly unbound

black (https://github.com/psf/black)

src/blackd/middlewares.py

[error] unsupported-operator - :15:39 - Operator `in` is not supported for types `str` and `under_cached_property[Unknown]`, in comparing `Literal["Access-Control-Request-Method"]` with `Unknown | under_cached_property[Unknown]`
[warning] possibly-unbound-attribute - :21:18 - Attribute `get` on type `Unknown | under_cached_property[Unknown]` is possibly unbound

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

ddtrace/_trace/utils_valkey.py

[error] invalid-argument-type - :77:71 - Argument to function `_set_span_tags` is incorrect: Expected `list[Unknown] | None`, found `LiteralString`
[error] invalid-argument-type - :93:71 - Argument to function `_set_span_tags` is incorrect: Expected `list[Unknown] | None`, found `LiteralString`

discord.py (https://github.com/Rapptz/discord.py)

discord/http.py

[error] non-subscriptable - :113:12 - Cannot subscript object of type `under_cached_property[Unknown]` with no `__getitem__` method
[warning] possibly-unbound-attribute - :399:26 - Attribute `get` on type `Unknown | under_cached_property[Unknown]` is possibly unbound
[warning] possibly-unbound-attribute - :402:38 - Attribute `get` on type `Unknown | under_cached_property[Unknown]` is possibly unbound
[warning] possibly-unbound-attribute - :404:34 - Attribute `get` on type `Unknown | under_cached_property[Unknown]` is possibly unbound
[warning] possibly-unbound-attribute - :407:23 - Attribute `get` on type `Unknown | under_cached_property[Unknown]` is possibly unbound
[error] non-subscriptable - :411:59 - Cannot subscript object of type `under_cached_property[Unknown]` with no `__getitem__` method

discord/webhook/async_.py

[warning] possibly-unbound-attribute - :194:37 - Attribute `get` on type `Unknown | under_cached_property[Unknown]` is possibly unbound
[warning] possibly-unbound-attribute - :208:36 - Attribute `get` on type `Unknown | under_cached_property[Unknown]` is possibly unbound

flake8 (https://github.com/pycqa/flake8)

src/flake8/processor.py

[error] invalid-return-type - :284:16 - Return type does not match returned value: expected `dict[int, str]`, found `dict[int, LiteralString]`

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

tests/ignite/metrics/test_running_average.py

[error] unresolved-attribute - :286:17 - Type `int` has no attribute `item`

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

kopf/_core/engines/posting.py

[warning] redundant-cast - :99:20 - Value is already of type `Iterator[Body]`
[warning] redundant-cast - :112:20 - Value is already of type `Iterator[Body]`
[warning] redundant-cast - :125:20 - Value is already of type `Iterator[Body]`
[warning] redundant-cast - :143:20 - Value is already of type `Iterator[Body]`

kopf/_kits/hierarchies.py

[warning] redundant-cast - :40:16 - Value is already of type `Iterator[Unknown]`
[warning] redundant-cast - :77:16 - Value is already of type `Iterator[Unknown]`
[warning] redundant-cast - :119:16 - Value is already of type `Iterator[Unknown]`
[warning] redundant-cast - :171:16 - Value is already of type `Iterator[Unknown]`
[warning] redundant-cast - :224:16 - Value is already of type `Iterator[Unknown]`

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

mesonbuild/wrap/wrap.py

[error] invalid-assignment - :788:21 - Object of type `Literal[b""]` is not assignable to `str`

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

test/individual_coverage.py

[error] invalid-argument-type - :103:46 - Argument to function `run_tests` is incorrect: Expected `bool`, found `Match[str] | None`

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

mkdocs/config/config_options.py

[error] invalid-return-type - :524:20 - Return type does not match returned value: expected `str`, found `Literal[b""]`

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

pymongo/asynchronous/cursor.py

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

pymongo/synchronous/cursor.py

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

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

openlibrary/coverstore/utils.py

[error] invalid-return-type - :92:12 - Return type does not match returned value: expected `tuple[str, dict[str, str]]`, found `tuple[Literal[b""], @Todo(dict comprehension type)]`

openlibrary/plugins/upstream/utils.py

[error] invalid-return-type - :1516:20 - Return type does not match returned value: expected `str`, found `Literal[b""]`

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

src/poetry/vcs/git/backend.py

[error] invalid-return-type - :548:12 - Return type does not match returned value: expected `str`, found `Literal[b""]`

tests/integration/test_utils_vcs_git.py

[error] unresolved-attribute - :432:43 - Type `Literal[b""]` has no attribute `encode`

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

src/integrations/prefect-bitbucket/prefect_bitbucket/repository.py

[error] invalid-return-type - :136:16 - Return type does not match returned value: expected `str`, found `Literal[b""] | Unknown`

src/integrations/prefect-github/prefect_github/repository.py

[error] invalid-return-type - :77:16 - Return type does not match returned value: expected `str`, found `Literal[b""] | Unknown`

src/integrations/prefect-gitlab/prefect_gitlab/repositories.py

[error] invalid-return-type - :116:16 - Return type does not match returned value: expected `str`, found `Literal[b""] | Unknown`

src/prefect/runner/storage.py

[error] invalid-return-type - :197:16 - Return type does not match returned value: expected `str`, found `Literal[b""]`

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

pwndbg/lib/zig.py

[error] invalid-assignment - :130:5 - Object of type `LiteralString` is not assignable to `list[Path] | None`

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

com/win32comext/shell/test/testSHFileOperation.py

[error] invalid-argument-type - :21:9 -
Old: Argument to function `SHFileOperation` is incorrect: Expected `SHFILEOPSTRUCT`, found `tuple[Literal[0], int, LiteralString, LiteralString, int]`
New: Argument to function `SHFileOperation` is incorrect: Expected `SHFILEOPSTRUCT`, found `tuple[Literal[0], int, Unknown, Unknown, int]`
[error] invalid-argument-type - :56:9 -
Old: Argument to function `SHFileOperation` is incorrect: Expected `SHFILEOPSTRUCT`, found `tuple[Literal[0], int, LiteralString, LiteralString, int]`
New: Argument to function `SHFileOperation` is incorrect: Expected `SHFILEOPSTRUCT`, found `tuple[Literal[0], int, Unknown, Unknown, int]`

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

rotkehlchen/tests/unit/accounting/test_staking.py

[error] invalid-argument-type - :88:42 - Argument is incorrect: Expected `FVal`, found `int`

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

src/schemathesis/core/output/sanitization.py

[error] invalid-return-type - :54:12 - Return type does not match returned value: expected `str`, found `Literal[b""]`

src/schemathesis/schemas.py

[error] invalid-return-type - :281:16 - Return type does not match returned value: expected `str`, found `Literal[b""]`

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

sklearn/feature_selection/_univariate_selection.py

[warning] possibly-unbound-attribute - :109:35 - Attribute `size` on type `int | float | @Todo(list comprehension type)` is possibly unbound

sklearn/externals/array_api_compat/common/_helpers.py

[warning] redundant-cast - :917:21 - Value is already of type `Collection[SupportsIndex]`

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

scipy/sparse/tests/test_arithmetic1d.py

[error] unresolved-attribute - :117:29 - Type `int` has no attribute `toarray`

scipy/_lib/array_api_compat/array_api_compat/common/_helpers.py

[warning] redundant-cast - :927:21 - Value is already of type `Collection[SupportsIndex]`

scipy/interpolate/_bsplines.py

[error] no-matching-overload - :2168:26 - No overload of function `sum` matches arguments

scipy/signal/_filter_design.py

[error] unresolved-attribute - :2471:20 - Type `int` has no attribute `coef`
[error] unresolved-attribute - :2472:20 - Type `int` has no attribute `coef`

scipy/sparse/tests/test_base.py

[error] unresolved-attribute - :1631:33 - Type `int` has no attribute `toarray`

scipy/stats/_mstats_basic.py

[error] unresolved-attribute - :939:13 - Type `int` has no attribute `sum`

sockeye (https://github.com/awslabs/sockeye)

sockeye/data_io.py

[warning] redundant-cast - :1364:18 - Value is already of type `Iterator[Unknown]`
[warning] redundant-cast - :1365:18 - Value is already of type `Iterator[Unknown]`

sphinx (https://github.com/sphinx-doc/sphinx)

sphinx/builders/linkcheck.py

[error] invalid-return-type - :758:20 - Return type does not match returned value: expected `str | None`, found `Literal[b""]`

sphinx/search/ja.py

[error] invalid-return-type - :143:16 - Return type does not match returned value: expected `list[str]`, found `list[LiteralString]`

sphinx/directives/code.py

[error] invalid-argument-type - :146:34 - Argument to function `dedent_lines` is incorrect: Expected `list[str]`, found `list[LiteralString]`

static-frame (https://github.com/static-frame/static-frame)

static_frame/core/www.py

[error] invalid-return-type - :115:16 - Return type does not match returned value: expected `str`, found `Literal[b""]`

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

sympy/vector/orienters.py

[error] index-out-of-bounds - :126:18 - Index 0 is out of bounds for string `Literal[""]` with length 0
[error] index-out-of-bounds - :127:18 - Index 1 is out of bounds for string `Literal[""]` with length 0
[error] index-out-of-bounds - :128:18 - Index 2 is out of bounds for string `Literal[""]` with length 0

sympy/integrals/prde.py

[error] unresolved-attribute - :89:11 - Type `int` has no attribute `as_poly`
[error] unresolved-attribute - :89:61 - Type `int` has no attribute `as_poly`
[error] unresolved-attribute - :90:10 - Type `int` has no attribute `as_poly`
[error] unresolved-attribute - :854:24 - Type `int` has no attribute `as_numer_denom`

sympy/polys/numberfields/primes.py

[error] unresolved-attribute - :555:13 - Type `int` has no attribute `norm`

sympy/polys/rootoftools.py

[error] invalid-argument-type - :1210:25 - Argument to function `together` is incorrect: Expected `Expr`, found `int`

sympy/series/approximants.py

[error] no-matching-overload - :109:19 - No overload of function `simplify` matches arguments

sympy/series/order.py

[warning] possibly-unbound-attribute - :305:20 - Attribute `expr` on type `Unknown | Expr` is possibly unbound

sympy/solvers/diophantine/diophantine.py

[error] unresolved-attribute - :2904:21 - Type `int` has no attribute `subs`

sympy/solvers/tests/test_solvers.py

[error] unresolved-attribute - :439:24 - Type `int` has no attribute `diff`
[error] unresolved-attribute - :440:24 - Type `int` has no attribute `diff`

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

src/urllib3/util/url.py

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

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

references/detection/engine.py

[error] unresolved-attribute - :38:22 - Type `int` has no attribute `item`
[error] unresolved-attribute - :51:13 - Type `int` has no attribute `backward`

test/test_backbone_utils.py

[warning] possibly-unbound-attribute - :184:9 -
Old: Attribute `backward` on type `int | Unknown` is possibly unbound
New: Attribute `backward` on type `Literal[0] | Unknown` is possibly unbound
[warning] possibly-unbound-attribute - :225:9 -
Old: Attribute `backward` on type `int | Unknown` is possibly unbound
New: Attribute `backward` on type `Literal[0] | Unknown` is possibly unbound

websockets (https://github.com/aaugustin/websockets)

src/websockets/legacy/auth.py

[warning] redundant-cast - :163:37 - Value is already of type `Iterable[Unknown | tuple[str, str]]`

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

zerver/lib/markdown/help_emoticon_translations_table.py

[error] invalid-return-type - :75:16 - Return type does not match returned value: expected `list[str]`, found `Unknown | list[LiteralString]`

corporate/views/remote_billing_page.py

[error] invalid-return-type - :513:12 - Return type does not match returned value: expected `str`, found `Literal[b""]`

zerver/lib/bot_lib.py

[error] invalid-argument-type - :115:81 - Argument to function `internal_send_group_direct_message` is incorrect: Expected `list[str] | None`, found `list[LiteralString]`