Repository navigation
fix show warning when function returning Not[Never] contains a Never loop #1132 - #4376
Open
asukaminato0721 wants to merge 2 commits into
Open
asukaminato0721 wants to merge 2 commits into
asukaminato0721 wants to merge 2 commits into
Conversation
Contributor
|
This pull request has been imported. If you are a Meta employee, you can view this in D114313418. (Because this pull request was imported automatically, there will not be any future comments.) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
asukaminato0721
force-pushed
the
1132
branch
from
September 18, 2026 19:59
39f4bcd to
ae83053
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
rchen152
requested changes
Nov 2, 2026
rchen152
left a comment
Contributor
There was a problem hiding this comment.
Rather than adding a warning specifically for infinite loops, I'd prefer to add a warning for any time the inferred return type is Never and the annotation is not, and exempt common cases in which the warning would be noise:
- Placeholder-type bodies like
raise NotImplementedError - Stubs, overloads, abstract methods, overrides
- Methods annotated
-> Nonethat always raise
mypy_primer will likely turn up more cases. If the list gets too long, we can probably just exempt any body that is nothing but raise ....
|
Diff from mypy_primer, showing the effect of this PR on open source code: ============================================================
SUMMARY
============================================================
Total: +643 new errors, -0 fixed errors
By preset: +0/-0 (default), +0/-0 (strict)
Projects with changes (70):
python-sop: +8 -0
pip: +1 -0
psycopg: +5 -0
starlette: +11 -0
apprise: +13 -0
pycryptodome: +2 -0
mkosi: +1 -0
mkdocs: +1 -0
openlibrary: +3 -0
rotki: +11 -0
egglog-python: +11 -0
graphql-core: +43 -0
pytest: +1 -0
artigraph: +4 -0
altair: +1 -0
jax: +12 -0
DateType: +1 -0
cryptography: +1 -0
prefect: +16 -0
spark: +73 -0
cwltool: +1 -0
scikit-build-core: +4 -0
setuptools: +2 -0
alerta: +37 -0
pyochain: +6 -0
freqtrade: +2 -0
colour: +2 -0
manticore: +5 -0
Expression: +6 -0
materialize: +6 -0
cibuildwheel: +3 -0
streamlit: +32 -0
dulwich: +4 -0
vision: +1 -0
strawberry: +1 -0
pandera: +13 -0
zulip: +29 -0
steam.py: +1 -0
ibis: +5 -0
bokeh: +5 -0
beartype: +2 -0
static-frame: +1 -0
antidote: +1 -0
aiohttp: +1 -0
mypy: +7 -0
pyodide: +2 -0
rclip: +1 -0
hydpy: +14 -0
anyio: +2 -0
pandas: +51 -0
pytensor: +1 -0
werkzeug: +2 -0
sphinx: +8 -0
websockets: +7 -0
meson: +67 -0
dd-trace-py: +5 -0
core: +14 -0
poetry: +7 -0
jinja: +4 -0
spack: +3 -0
xarray: +15 -0
kornia: +5 -0
pydantic: +3 -0
scrapy: +7 -0
docstring-adder: +1 -0
pylox: +1 -0
boostedblob: +15 -0
optuna: +7 -0
django-modern-rest: +4 -0
discord.py: +1 -0
============================================================
FULL DIFF DETAILS
------------------------------------------------------------
python-sop (https://gitlab.com/dkg/python-sop)
+ ERROR sop/__init__.py:457:87-92: Function declared to return `bytes` but can never return [unexpected-never]
+ ERROR sop/__init__.py:469:79-84: Function declared to return `bytes` but can never return [unexpected-never]
+ ERROR sop/__init__.py:489:55-60: Function declared to return `bytes` but can never return [unexpected-never]
+ ERROR sop/__init__.py:526:39-57: Function declared to return `list[SOPSigResult]` but can never return [unexpected-never]
+ ERROR sop/__init__.py:574:40-45: Function declared to return `bytes` but can never return [unexpected-never]
+ ERROR sop/__init__.py:651:40-97: Function declared to return `tuple[bytes, list[SOPSigResult], SOPSessionKey | None]` but can never return [unexpected-never]
+ ERROR sop/__init__.py:663:38-43: Function declared to return `bytes` but can never return [unexpected-never]
+ ERROR sop/__init__.py:676:58-63: Function declared to return `bytes` but can never return [unexpected-never]
pip (https://github.com/pypa/pip)
+ ERROR src/pip/_internal/utils/logging.py:184:45-52: Function declared to return `Console` but can never return [unexpected-never]
psycopg (https://github.com/psycopg/psycopg)
+ ERROR psycopg/psycopg/_struct.py:47:38-43: Function declared to return `bytes` but can never return [unexpected-never]
+ ERROR psycopg/psycopg/types/composite.py:357:67-80: Function declared to return `Sequence[Any]` but can never return [unexpected-never]
+ ERROR psycopg/psycopg/types/datetime.py:543:65-73: Function declared to return `datetime` but can never return [unexpected-never]
+ ERROR psycopg/psycopg/types/datetime.py:640:62-71: Function declared to return `timedelta` but can never return [unexpected-never]
+ ERROR psycopg/psycopg/types/range.py:438:28-34: Function declared to return `bytearray | bytes | memoryview` but can never return [unexpected-never]
starlette (https://github.com/encode/starlette)
+ ERROR tests/middleware/test_body_limit.py:80:28-35: Function declared to return `MutableMapping[str, Any]` but can never return [unexpected-never]
+ ERROR tests/middleware/test_opentelemetry.py:443:36-53: Function declared to return `PlainTextResponse` but can never return [unexpected-never]
+ ERROR tests/middleware/test_wsgi.py:46:6-18: Function declared to return `Iterable[bytes]` but can never return [unexpected-never]
+ ERROR tests/test_endpoints.py:246:28-35: Function declared to return `MutableMapping[str, Any]` but can never return [unexpected-never]
+ ERROR tests/test_endpoints.py:269:28-35: Function declared to return `MutableMapping[str, Any]` but can never return [unexpected-never]
+ ERROR tests/test_responses.py:493:28-35: Function declared to return `MutableMapping[str, Any]` but can never return [unexpected-never]
+ ERROR tests/test_responses.py:524:28-35: Function declared to return `MutableMapping[str, Any]` but can never return [unexpected-never]
+ ERROR tests/test_responses.py:785:28-35: Function declared to return `MutableMapping[str, Any]` but can never return [unexpected-never]
+ ERROR tests/test_responses.py:802:28-35: Function declared to return `MutableMapping[str, Any]` but can never return [unexpected-never]
+ ERROR tests/test_responses.py:1239:28-35: Function declared to return `MutableMapping[str, Any]` but can never return [unexpected-never]
+ ERROR tests/test_routing.py:1013:34-42: Function declared to return `Response` but can never return [unexpected-never]
apprise (https://github.com/caronc/apprise)
+ ERROR tests/test_plugin_xmpp.py:866:53-57: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR tests/test_plugin_xmpp.py:1081:35-38: Function declared to return `Any` but can never return [unexpected-never]
+ ERROR tests/test_plugin_xmpp.py:2042:49-52: Function declared to return `Any` but can never return [unexpected-never]
+ ERROR tests/test_plugin_xmpp.py:2243:62-65: Function declared to return `Any` but can never return [unexpected-never]
+ ERROR tests/test_plugin_xmpp.py:2264:62-65: Function declared to return `Any` but can never return [unexpected-never]
+ ERROR tests/test_plugin_xmpp.py:3646:66-69: Function declared to return `Any` but can never return [unexpected-never]
+ ERROR tests/test_plugin_xmpp.py:3771:66-69: Function declared to return `Any` but can never return [unexpected-never]
+ ERROR tests/test_plugin_xmpp.py:3890:52-58: Function declared to return `object` but can never return [unexpected-never]
+ ERROR tests/test_plugin_xmpp.py:3999:64-67: Function declared to return `Any` but can never return [unexpected-never]
+ ERROR tests/test_plugin_xmpp.py:5132:44-47: Function declared to return `Any` but can never return [unexpected-never]
+ ERROR tests/test_plugin_xmpp.py:5410:30-34: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR tests/test_plugin_xmpp.py:5447:30-34: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR tests/test_plugin_xmpp.py:5624:66-70: Function declared to return `bool` but can never return [unexpected-never]
pycryptodome (https://github.com/Legrandin/pycryptodome)
+ ERROR lib/Crypto/Cipher/_mode_siv.py:147:45-50: Function declared to return `bytes` but can never return [unexpected-never]
+ ERROR lib/Crypto/Cipher/_mode_siv.py:157:46-51: Function declared to return `bytes` but can never return [unexpected-never]
mkosi (https://github.com/systemd/mkosi)
+ ERROR mkosi/distribution/__init__.py:147:51-54: Function declared to return `str` but can never return [unexpected-never]
mkdocs (https://github.com/mkdocs/mkdocs)
+ ERROR mkdocs/plugins.py:486:84-85: Function declared to return `T` but can never return [unexpected-never]
openlibrary (https://github.com/internetarchive/openlibrary)
+ ERROR openlibrary/core/booknotes.py:146:106-114: Function declared to return `Booknote` but can never return [unexpected-never]
+ ERROR openlibrary/fastapi/merge_authors.py:35:67-70: Function declared to return `Any` but can never return [unexpected-never]
+ ERROR openlibrary/tests/core/test_provider_tokens.py:144:47-52: Function declared to return `Grant` but can never return [unexpected-never]
rotki (https://github.com/rotki/rotki)
+ ERROR rotkehlchen/tests/api/test_history_base_entry.py:728:88-97: Function declared to return `Exception` but can never return [unexpected-never]
+ ERROR rotkehlchen/tests/integration/test_gnosischain.py:179:10-30: Function declared to return `list[dict[str, Any]]` but can never return [unexpected-never]
+ ERROR rotkehlchen/tests/mcp/test_backend.py:46:46-58: Function declared to return `MockResponse` but can never return [unexpected-never]
+ ERROR rotkehlchen/tests/mcp/test_backend.py:109:46-58: Function declared to return `MockResponse` but can never return [unexpected-never]
+ ERROR rotkehlchen/tests/mcp/test_premium.py:83:46-58: Function declared to return `MockResponse` but can never return [unexpected-never]
+ ERROR rotkehlchen/tests/mcp/tools/test_info.py:107:46-58: Function declared to return `MockResponse` but can never return [unexpected-never]
+ ERROR rotkehlchen/tests/unit/test_evm_indexer_order.py:185:32-35: Function declared to return `str` but can never return [unexpected-never]
+ ERROR rotkehlchen/tests/unit/test_evm_indexer_order.py:220:32-35: Function declared to return `str` but can never return [unexpected-never]
+ ERROR rotkehlchen/tests/unit/test_evm_indexer_order.py:244:41-44: Function declared to return `str` but can never return [unexpected-never]
+ ERROR rotkehlchen/tests/unit/test_evm_indexer_order.py:435:32-35: Function declared to return `str` but can never return [unexpected-never]
+ ERROR rotkehlchen/tests/unit/test_evm_tx_decoding.py:1018:55-79: Function declared to return `TransferEnrichmentOutput` but can never return [unexpected-never]
egglog-python (https://github.com/egraphs-good/egglog-python)
+ ERROR python/tests/test_egraph_state.py:145:46-52: Function declared to return `object` but can never return [unexpected-never]
+ ERROR python/tests/test_egraph_state.py:292:30-42: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR python/tests/test_high_level.py:2750:28-31: Function declared to return `int` but can never return [unexpected-never]
+ ERROR python/tests/test_high_level.py:3777:89-92: Function declared to return `int` but can never return [unexpected-never]
+ ERROR python/tests/test_high_level.py:4163:62-65: Function declared to return `int` but can never return [unexpected-never]
+ ERROR python/tests/test_high_level.py:4176:55-67: Function declared to return `TestCustomExtract.test_dag_add_error_bubbles.AddErrorCost` but can never return [unexpected-never]
+ ERROR python/tests/test_high_level.py:4208:58-62: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR python/tests/test_high_level.py:4213:58-62: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR python/tests/test_high_level.py:4218:58-62: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR python/tests/test_high_level.py:4223:58-62: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR python/tests/test_py_object_sort.py:78:51-57: Function declared to return `object` but can never return [unexpected-never]
graphql-core (https://github.com/graphql-python/graphql-core)
+ ERROR tests/execution/incremental/test_defer.py:192:23-26: Function declared to return `str` but can never return [unexpected-never]
+ ERROR tests/execution/incremental/test_defer.py:4700:46-49: Function declared to return `str` but can never return [unexpected-never]
+ ERROR tests/execution/incremental/test_incremental_executor.py:166:39-43: Function declared to return `dict[Unknown, Unknown]` but can never return [unexpected-never]
+ ERROR tests/execution/incremental/test_work_queue.py:192:23-33: Function declared to return `WorkResult` but can never return [unexpected-never]
+ ERROR tests/execution/incremental/test_work_queue.py:230:23-33: Function declared to return `WorkResult` but can never return [unexpected-never]
+ ERROR tests/execution/incremental/test_work_queue.py:233:30-40: Function declared to return `WorkResult` but can never return [unexpected-never]
+ ERROR tests/execution/incremental/test_work_queue.py:277:35-45: Function declared to return `WorkResult` but can never return [unexpected-never]
+ ERROR tests/execution/incremental/test_work_queue.py:283:30-40: Function declared to return `WorkResult` but can never return [unexpected-never]
+ ERROR tests/execution/incremental/test_work_queue.py:327:23-33: Function declared to return `WorkResult` but can never return [unexpected-never]
+ ERROR tests/execution/incremental/test_work_queue.py:330:29-39: Function declared to return `WorkResult` but can never return [unexpected-never]
+ ERROR tests/execution/incremental/test_work_queue.py:333:33-43: Function declared to return `WorkResult` but can never return [unexpected-never]
+ ERROR tests/execution/incremental/test_work_queue.py:384:23-33: Function declared to return `WorkResult` but can never return [unexpected-never]
+ ERROR tests/execution/incremental/test_work_queue.py:387:33-43: Function declared to return `WorkResult` but can never return [unexpected-never]
+ ERROR tests/execution/incremental/test_work_queue.py:426:23-33: Function declared to return `WorkResult` but can never return [unexpected-never]
+ ERROR tests/execution/incremental/test_work_queue.py:641:23-33: Function declared to return `WorkResult` but can never return [unexpected-never]
+ ERROR tests/execution/incremental/test_work_queue.py:733:23-33: Function declared to return `WorkResult` but can never return [unexpected-never]
+ ERROR tests/execution/incremental/test_work_queue.py:842:23-33: Function declared to return `WorkResult` but can never return [unexpected-never]
+ ERROR tests/execution/incremental/test_work_queue.py:868:23-33: Function declared to return `WorkResult` but can never return [unexpected-never]
+ ERROR tests/execution/incremental/test_work_queue.py:1048:31-41: Function declared to return `WorkResult` but can never return [unexpected-never]
+ ERROR tests/execution/incremental/test_work_queue.py:1132:30-40: Function declared to return `WorkResult` but can never return [unexpected-never]
+ ERROR tests/execution/incremental/test_work_queue.py:1186:30-40: Function declared to return `WorkResult` but can never return [unexpected-never]
+ ERROR tests/execution/incremental/test_work_queue.py:1214:30-40: Function declared to return `WorkResult` but can never return [unexpected-never]
+ ERROR tests/execution/incremental/test_work_queue.py:1239:30-40: Function declared to return `WorkResult` but can never return [unexpected-never]
+ ERROR tests/execution/incremental/test_work_queue.py:1267:23-33: Function declared to return `WorkResult` but can never return [unexpected-never]
+ ERROR tests/execution/incremental/test_work_queue.py:1325:23-33: Function declared to return `WorkResult` but can never return [unexpected-never]
+ ERROR tests/execution/incremental/test_work_queue.py:1356:25-35: Function declared to return `WorkResult` but can never return [unexpected-never]
+ ERROR tests/execution/incremental/test_work_queue.py:1361:41-51: Function declared to return `WorkResult` but can never return [unexpected-never]
+ ERROR tests/execution/incremental/test_work_queue.py:1389:23-33: Function declared to return `WorkResult` but can never return [unexpected-never]
+ ERROR tests/execution/incremental/test_work_queue.py:1416:34-44: Function declared to return `WorkResult` but can never return [unexpected-never]
+ ERROR tests/execution/incremental/test_work_queue.py:1459:24-34: Function declared to return `WorkResult` but can never return [unexpected-never]
+ ERROR tests/execution/incremental/test_work_queue.py:1462:24-34: Function declared to return `WorkResult` but can never return [unexpected-never]
+ ERROR tests/execution/test_error_propagation.py:15:33-36: Function declared to return `int` but can never return [unexpected-never]
+ ERROR tests/execution/test_lists.py:265:43-46: Function declared to return `str` but can never return [unexpected-never]
+ ERROR tests/execution/test_lists.py:522:43-46: Function declared to return `int` but can never return [unexpected-never]
+ ERROR tests/execution/test_map_async_iterable.py:13:29-32: Function declared to return `int` but can never return [unexpected-never]
+ ERROR tests/execution/test_union_interface.py:123:48-52: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR tests/execution/test_union_interface.py:607:61-65: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR tests/execution/test_union_interface.py:620:51-55: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR tests/execution/test_variables.py:40:47-50: Function declared to return `str` but can never return [unexpected-never]
+ ERROR tests/execution/test_variables.py:44:53-56: Function declared to return `str` but can never return [unexpected-never]
+ ERROR tests/pyutils/test_group_by.py:6:32-35: Function declared to return `str` but can never return [unexpected-never]
+ ERROR tests/star_wars_data.py:142:51-54: Function declared to return `str` but can never return [unexpected-never]
+ ERROR tests/utilities/test_value_to_literal.py:138:49-52: Function declared to return `Any` but can never return [unexpected-never]
pytest (https://github.com/pytest-dev/pytest)
+ ERROR src/_pytest/fixtures.py:1502:52-55: Function declared to return `Any` but can never return [unexpected-never]
artigraph (https://github.com/artigraph/artigraph)
+ ERROR tests/arti/artifacts/test_artifact.py:82:46-50: Function declared to return `Self@test_Artifact_validation.BadFormat` but can never return [unexpected-never]
+ ERROR tests/arti/artifacts/test_artifact.py:86:46-50: Function declared to return `Self@test_Artifact_validation.BadStorage` but can never return [unexpected-never]
+ ERROR tests/arti/artifacts/test_artifact.py:89:52-56: Function declared to return `Self@test_Artifact_validation.BadStorage` but can never return [unexpected-never]
+ ERROR src/arti/views/pandas.py:23:31-34: Function declared to return `Any` but can never return [unexpected-never]
altair (https://github.com/vega/altair)
+ ERROR altair/vegalite/v6/api.py:4403:10-30: Function declared to return `DataFrameLike | None` but can never return [unexpected-never]
jax (https://github.com/google/jax)
+ ERROR jax/_src/array.py:1226:23-33: Function declared to return `ndarray` but can never return [unexpected-never]
+ ERROR jax/_src/export/shape_poly.py:1163:31-50: Function declared to return `tuple[float, float]` but can never return [unexpected-never]
+ ERROR jax/_src/flattree.py:51:21-30: Function declared to return `PyTreeDef` but can never return [unexpected-never]
+ ERROR jax/_src/hijax.py:105:28-33: Function declared to return `Any` but can never return [unexpected-never]
+ ERROR jax/_src/hijax.py:127:19-26: Function declared to return `HiPspec` but can never return [unexpected-never]
+ ERROR jax/_src/hijax.py:1553:22-47: Function declared to return `tuple[P, ...]` but can never return [unexpected-never]
+ ERROR jax/_src/hijax.py:1555:59-66: Function declared to return `HiPspec` but can never return [unexpected-never]
+ ERROR jax/_src/hijax.py:1557:32-39: Function declared to return `HiPspec` but can never return [unexpected-never]
+ ERROR jax/_src/hijax.py:1559:27-34: Function declared to return `HiPspec` but can never return [unexpected-never]
+ ERROR jax/_src/interpreters/ad.py:402:23-35: Function declared to return `Zero | Any` but can never return [unexpected-never]
+ ERROR jax/_src/pallas/mosaic_gpu/core.py:1737:31-51: Function declared to return `ShapedArray` but can never return [unexpected-never]
+ ERROR jax/_src/pallas/mosaic_gpu/core.py:1762:31-51: Function declared to return `ShapedArray` but can never return [unexpected-never]
DateType (https://github.com/glyph/DateType)
+ ERROR src/datetype/__init__.py:640:6-31: Function declared to return `date | datetime | time` but can never return [unexpected-never]
cryptography (https://github.com/pyca/cryptography)
+ ERROR src/cryptography/hazmat/primitives/serialization/ssh.py:54:10-15: Function declared to return `bytes` but can never return [unexpected-never]
prefect (https://github.com/PrefectHQ/prefect)
+ ERROR src/integrations/prefect-kubernetes/tests/test_observer.py:1106:49-58: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR src/integrations/prefect-kubernetes/tests/test_observer.py:2881:44-49: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR src/integrations/prefect-redis/tests/test_cleanup_queue.py:325:35-44: Function declared to return `list[str]` but can never return [unexpected-never]
+ ERROR src/prefect/cli/_cloud_utils.py:37:71-79: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR src/prefect/cli/_utilities.py:17:80-88: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR src/prefect/cli/_utilities.py:24:55-63: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR src/prefect/client/cloud.py:179:28-36: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR src/prefect/client/cloud.py:185:39-47: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR src/prefect/client/orchestration/__init__.py:1218:28-36: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR src/prefect/client/orchestration/__init__.py:1224:39-47: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR src/prefect/runner/_flow_run_executor.py:277:62-66: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR src/prefect/server/logs/stream.py:237:30-38: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR src/prefect/server/logs/stream.py:253:54-62: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR src/prefect/utilities/asyncutils/__init__.py:515:80-88: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR src/prefect/utilities/engine/__init__.py:98:62-70: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR src/prefect/workers/_cleanup.py:239:10-44: Function declared to return `Unknown | None` but can never return [unexpected-never]
spark (https://github.com/apache/spark)
+ ERROR python/pyspark/core/context.py:839:41-44: Function declared to return `int` but can never return [unexpected-never]
+ ERROR python/pyspark/core/rdd.py:5096:11-20: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR python/pyspark/errors/exceptions/connect.py:570:27-30: Function declared to return `str` but can never return [unexpected-never]
+ ERROR python/pyspark/errors/exceptions/connect.py:592:29-32: Function declared to return `str` but can never return [unexpected-never]
+ ERROR python/pyspark/errors/exceptions/connect.py:603:29-32: Function declared to return `str` but can never return [unexpected-never]
+ ERROR python/pyspark/errors/exceptions/connect.py:614:29-32: Function declared to return `int` but can never return [unexpected-never]
+ ERROR python/pyspark/errors/exceptions/connect.py:625:28-31: Function declared to return `int` but can never return [unexpected-never]
+ ERROR python/pyspark/ml/connect/readwrite.py:43:22-34: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR python/pyspark/ml/torch/tests/test_distributor.py:343:74-77: Function declared to return `str` but can never return [unexpected-never]
+ ERROR python/pyspark/pandas/data_type_ops/base.py:347:54-67: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR python/pyspark/pandas/data_type_ops/base.py:350:54-67: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR python/pyspark/pandas/data_type_ops/base.py:353:54-67: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR python/pyspark/pandas/data_type_ops/base.py:356:58-71: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR python/pyspark/pandas/data_type_ops/base.py:359:59-72: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR python/pyspark/pandas/data_type_ops/base.py:362:54-67: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR python/pyspark/pandas/data_type_ops/base.py:365:54-67: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR python/pyspark/pandas/data_type_ops/base.py:368:55-68: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR python/pyspark/pandas/data_type_ops/base.py:371:55-68: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR python/pyspark/pandas/data_type_ops/base.py:374:55-68: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR python/pyspark/pandas/data_type_ops/base.py:377:59-72: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR python/pyspark/pandas/data_type_ops/base.py:380:60-73: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR python/pyspark/pandas/data_type_ops/base.py:383:55-68: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR python/pyspark/pandas/data_type_ops/base.py:386:55-68: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR python/pyspark/pandas/data_type_ops/base.py:389:58-71: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR python/pyspark/pandas/data_type_ops/base.py:392:54-67: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR python/pyspark/pandas/data_type_ops/base.py:395:57-70: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR python/pyspark/pandas/data_type_ops/base.py:410:45-57: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR python/pyspark/pandas/data_type_ops/base.py:413:45-57: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR python/pyspark/pandas/data_type_ops/base.py:416:53-66: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR python/pyspark/pandas/data_type_ops/base.py:419:53-66: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR python/pyspark/pandas/data_type_ops/base.py:422:53-66: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR python/pyspark/pandas/data_type_ops/base.py:425:53-66: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR python/pyspark/pandas/data_type_ops/base.py:544:48-60: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR python/pyspark/pandas/data_type_ops/base.py:566:82-94: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR python/pyspark/pandas/indexes/base.py:2648:27-31: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR python/pyspark/pandas/indexes/multi.py:136:27-37: Function declared to return `MultiIndex` but can never return [unexpected-never]
+ ERROR python/pyspark/pandas/indexes/multi.py:356:23-27: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR python/pyspark/sql/aggregator.py:135:54-57: Function declared to return `Any` but can never return [unexpected-never]
+ ERROR python/pyspark/sql/classic/dataframe.py:2101:32-57: Function declared to return `Unknown | None` but can never return [unexpected-never]
+ ERROR python/pyspark/sql/connect/client/core.py:292:28-40: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR python/pyspark/sql/connect/client/core.py:303:23-26: Function declared to return `str` but can never return [unexpected-never]
+ ERROR python/pyspark/sql/connect/dataframe.py:2529:27-35: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR python/pyspark/sql/connect/session.py:238:41-61: Function declared to return `SparkSession.Builder` but can never return [unexpected-never]
+ ERROR python/pyspark/sql/connect/types.py:102:28-42: Function declared to return `dict[str, Any]` but can never return [unexpected-never]
+ ERROR python/pyspark/sql/connect/types.py:108:33-37: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR python/pyspark/sql/connect/types.py:114:39-42: Function declared to return `Any` but can never return [unexpected-never]
+ ERROR python/pyspark/sql/connect/types.py:120:41-44: Function declared to return `Any` but can never return [unexpected-never]
+ ERROR python/pyspark/sql/datasource.py:119:25-47: Function declared to return `str | Unknown` but can never return [unexpected-never]
+ ERROR python/pyspark/sql/datasource.py:152:46-62: Function declared to return `DataSourceReader` but can never return [unexpected-never]
+ ERROR python/pyspark/sql/datasource.py:173:63-79: Function declared to return `DataSourceWriter` but can never return [unexpected-never]
+ ERROR python/pyspark/sql/datasource.py:196:69-91: Function declared to return `DataSourceStreamWriter` but can never return [unexpected-never]
+ ERROR python/pyspark/sql/datasource.py:219:58-86: Function declared to return `SimpleDataSourceStreamReader` but can never return [unexpected-never]
+ ERROR python/pyspark/sql/datasource.py:243:52-74: Function declared to return `DataSourceStreamReader` but can never return [unexpected-never]
+ ERROR python/pyspark/sql/datasource.py:779:32-36: Function declared to return `dict[Unknown, Unknown]` but can never return [unexpected-never]
+ ERROR python/pyspark/sql/datasource.py:802:62-66: Function declared to return `dict[Unknown, Unknown]` but can never return [unexpected-never]
+ ERROR python/pyspark/sql/datasource.py:892:53-77: Function declared to return `Sequence[InputPartition]` but can never return [unexpected-never]
+ ERROR python/pyspark/sql/datasource.py:987:32-36: Function declared to return `dict[Unknown, Unknown]` but can never return [unexpected-never]
+ ERROR python/pyspark/sql/datasource.py:1010:36-64: Function declared to return `tuple[Iterator[tuple[Unknown, ...]], dict[Unknown, Unknown]]` but can never return [unexpected-never]
+ ERROR python/pyspark/sql/datasource.py:1031:61-76: Function declared to return `Iterator[tuple[Unknown, ...]]` but can never return [unexpected-never]
+ ERROR python/pyspark/sql/session.py:2237:26-44: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR python/pyspark/sql/tests/pandas/test_pipelined_udf.py:247:38-47: Function declared to return `Series` but can never return [unexpected-never]
+ ERROR python/pyspark/sql/tests/test_python_datasource.py:476:61-77: Function declared to return `Iterable[Unknown]` but can never return [unexpected-never]
+ ERROR python/pyspark/sql/tests/test_python_datasource.py:498:61-77: Function declared to return `Iterable[Unknown]` but can never return [unexpected-never]
+ ERROR python/pyspark/sql/tests/test_python_datasource.py:713:48-52: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR python/pyspark/sql/tests/test_python_datasource.py:866:48-52: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR python/pyspark/sql/tests/test_python_datasource.py:951:48-52: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR python/pyspark/sql/tests/test_python_datasource.py:1060:61-77: Function declared to return `Iterable[Unknown]` but can never return [unexpected-never]
+ ERROR python/pyspark/sql/tests/test_python_datasource.py:1124:48-52: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR python/pyspark/sql/tests/test_udtf.py:2047:30-43: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR python/pyspark/sql/types.py:2126:25-33: Function declared to return `DataType` but can never return [unexpected-never]
+ ERROR python/pyspark/sql/types.py:2136:24-27: Function declared to return `str` but can never return [unexpected-never]
+ ERROR python/pyspark/sql/types.py:2174:38-41: Function declared to return `Any` but can never return [unexpected-never]
+ ERROR python/pyspark/sql/types.py:2183:42-45: Function declared to return `Any` but can never return [unexpected-never]
cwltool (https://github.com/common-workflow-language/cwltool)
+ ERROR tests/test_examples.py:1609:53-56: Function declared to return `Any` but can never return [unexpected-never]
scikit-build-core (https://github.com/scikit-build/scikit-build-core)
+ ERROR tests/test_init.py:157:36-39: Function declared to return `str` but can never return [unexpected-never]
+ ERROR src/scikit_build_core/resources/_editable_redirect.py:115:56-62: Function declared to return `object` but can never return [unexpected-never]
+ ERROR src/scikit_build_core/resources/_editable_redirect.py:118:29-34: Function declared to return `bytes` but can never return [unexpected-never]
+ ERROR src/scikit_build_core/resources/_editable_redirect.py:121:57-60: Function declared to return `str` but can never return [unexpected-never]
setuptools (https://github.com/pypa/setuptools)
+ ERROR setuptools/_normalization.py:155:66-69: Function declared to return `str` but can never return [unexpected-never]
+ ERROR setuptools/_shutil.py:35:6-8: Function declared to return `_T` but can never return [unexpected-never]
alerta (https://github.com/alerta/alerta)
+ ERROR alerta/models/alert.py:250:66-70: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR alerta/models/alert.py:428:32-36: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR alerta/models/alert.py:452:39-43: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR alerta/models/alert.py:456:41-45: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR alerta/models/alert.py:460:47-51: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR alerta/models/alert.py:464:64-78: Function declared to return `dict[str, Any]` but can never return [unexpected-never]
+ ERROR alerta/models/alert.py:468:25-29: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR alerta/models/alert.py:507:43-57: Function declared to return `dict[str, Any]` but can never return [unexpected-never]
+ ERROR alerta/models/alert.py:512:56-70: Function declared to return `dict[str, Any]` but can never return [unexpected-never]
+ ERROR alerta/models/alert.py:517:54-68: Function declared to return `dict[str, Any]` but can never return [unexpected-never]
+ ERROR alerta/models/alert.py:526:64-84: Function declared to return `list[dict[str, Any]]` but can never return [unexpected-never]
+ ERROR alerta/models/alert.py:535:67-87: Function declared to return `list[dict[str, Any]]` but can never return [unexpected-never]
+ ERROR alerta/models/alert.py:544:67-87: Function declared to return `list[dict[str, Any]]` but can never return [unexpected-never]
+ ERROR alerta/models/alert.py:549:77-86: Function declared to return `list[str]` but can never return [unexpected-never]
+ ERROR alerta/models/alert.py:558:46-55: Function declared to return `list[str]` but can never return [unexpected-never]
+ ERROR alerta/models/alert.py:563:44-53: Function declared to return `list[str]` but can never return [unexpected-never]
+ ERROR alerta/models/alert.py:568:42-51: Function declared to return `list[str]` but can never return [unexpected-never]
+ ERROR alerta/models/blackout.py:233:39-42: Function declared to return `int` but can never return [unexpected-never]
+ ERROR alerta/models/blackout.py:248:25-29: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR alerta/models/customer.py:75:39-42: Function declared to return `int` but can never return [unexpected-never]
+ ERROR alerta/models/customer.py:81:25-29: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR alerta/models/group.py:139:39-42: Function declared to return `int` but can never return [unexpected-never]
+ ERROR alerta/models/group.py:151:25-29: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR alerta/models/heartbeat.py:174:39-42: Function declared to return `int` but can never return [unexpected-never]
+ ERROR alerta/models/heartbeat.py:178:25-29: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR alerta/models/key.py:141:39-42: Function declared to return `int` but can never return [unexpected-never]
+ ERROR alerta/models/key.py:155:25-29: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR alerta/models/note.py:139:25-29: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR alerta/models/note.py:143:34-38: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR alerta/models/permission.py:80:39-42: Function declared to return `int` but can never return [unexpected-never]
+ ERROR alerta/models/permission.py:86:25-29: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR alerta/models/user.py:167:39-42: Function declared to return `int` but can never return [unexpected-never]
+ ERROR alerta/models/user.py:170:36-40: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR alerta/models/user.py:185:64-68: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR alerta/models/user.py:188:25-29: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR alerta/models/user.py:206:45-49: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR alerta/models/user.py:209:36-40: Function declared to return `bool` but can never return [unexpected-never]
pyochain (https://github.com/OutSquareCapital/pyochain)
+ ERROR tests/test_concatenate_unsafe.py:50:36-39: Function declared to return `int` but can never return [unexpected-never]
+ ERROR tests/test_concatenate_unsafe.py:55:38-49: Function declared to return `Null[int] | Some[int]` but can never return [unexpected-never]
+ ERROR tests/test_concatenate_unsafe.py:60:45-48: Function declared to return `int` but can never return [unexpected-never]
+ ERROR tests/test_extern/test_cpython/test_list.py:356:31-34: Function declared to return `int` but can never return [unexpected-never]
+ ERROR tests/test_extern/test_cpython/test_list.py:690:31-37: Function declared to return `object` but can never return [unexpected-never]
+ ERROR tests/test_extern/test_cpython/test_seq.py:155:27-28: Function declared to return `T` but can never return [unexpected-never]
freqtrade (https://github.com/freqtrade/freqtrade)
+ ERROR freqtrade/plugins/pairlist/IPairList.py:279:49-58: Function declared to return `list[str]` but can never return [unexpected-never]
+ ERROR freqtrade/rpc/api_server/ws/serializer.py:32:29-34: Function declared to return `bytes` but can never return [unexpected-never]
colour (https://github.com/colour-science/colour)
+ ERROR colour/utilities/tests/test_array.py:410:63-66: Function declared to return `Any` but can never return [unexpected-never]
+ ERROR colour/utilities/tests/test_array.py:429:63-66: Function declared to return `Any` but can never return [unexpected-never]
manticore (https://github.com/trailofbits/manticore)
+ ERROR manticore/core/smtlib/solver.py:146:60-64: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR manticore/core/smtlib/solver.py:150:56-60: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR manticore/platforms/linux_syscall_stubs.py:709:38-41: Function declared to return `int` but can never return [unexpected-never]
+ ERROR manticore/platforms/linux_syscall_stubs.py:864:36-39: Function declared to return `int` but can never return [unexpected-never]
+ ERROR manticore/platforms/linux_syscall_stubs.py:869:36-39: Function declared to return `int` but can never return [unexpected-never]
Expression (https://github.com/cognitedata/Expression)
+ ERROR tests/test_catch.py:20:17-20: Function declared to return `Any` but can never return [unexpected-never]
+ ERROR tests/test_catch.py:35:30-52: Function declared to return `Result[int, Exception]` but can never return [unexpected-never]
+ ERROR tests/test_catch.py:48:30-33: Function declared to return `Any` but can never return [unexpected-never]
+ ERROR tests/test_option.py:428:26-29: Function declared to return `Any` but can never return [unexpected-never]
+ ERROR tests/test_seq.py:447:30-34: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR tests/test_seq.py:499:28-39: Function declared to return `Option[str]` but can never return [unexpected-never]
materialize (https://github.com/MaterializeInc/materialize)
+ ERROR misc/python/materialize/feature_benchmark/benchmark_result_evaluator.py:28:57-69: Function declared to return `float | None` but can never return [unexpected-never]
+ ERROR misc/python/materialize/feature_benchmark/benchmark_result_evaluator.py:33:10-14: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR misc/python/materialize/feature_benchmark/benchmark_result_evaluator.py:36:72-76: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR misc/python/materialize/feature_benchmark/benchmark_result_evaluator.py:39:84-87: Function declared to return `str` but can never return [unexpected-never]
+ ERROR misc/python/materialize/scalability/result/scalability_change.py:39:27-30: Function declared to return `str` but can never return [unexpected-never]
+ ERROR misc/python/materialize/zippy/scenarios.py:109:38-66: Function declared to return `dict[ActionOrFactory, float]` but can never return [unexpected-never]
cibuildwheel (https://github.com/pypa/cibuildwheel)
+ ERROR cibuildwheel/options.py:238:50-53: Function declared to return `str` but can never return [unexpected-never]
+ ERROR cibuildwheel/options.py:241:52-55: Function declared to return `str` but can never return [unexpected-never]
+ ERROR cibuildwheel/options.py:244:56-59: Function declared to return `str` but can never return [unexpected-never]
streamlit (https://github.com/streamlit/streamlit)
+ ERROR lib/streamlit/elements/pdf.py:215:36-50: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR lib/streamlit/runtime/caching/storage/dummy_cache_storage.py:46:32-37: Function declared to return `bytes` but can never return [unexpected-never]
+ ERROR lib/tests/streamlit/dataframe/lazy_df_source_test.py:468:28-31: Function declared to return `int` but can never return [unexpected-never]
+ ERROR lib/tests/streamlit/elements/button_group_test.py:50:40-43: Function declared to return `str` but can never return [unexpected-never]
+ ERROR lib/tests/streamlit/elements/echarts_chart_test.py:1187:31-39: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR lib/tests/streamlit/elements/echarts_chart_test.py:1280:57-70: Function declared to return `test_normalize_spec_accepts_source_that_cannot_be_deepcopied._OpaqueSource` but can never return [unexpected-never]
+ ERROR lib/tests/streamlit/elements/lib/agent_spec_test.py:180:21-35: Function declared to return `dict[str, Any]` but can never return [unexpected-never]
+ ERROR lib/tests/streamlit/elements/menu_button_test.py:292:40-43: Function declared to return `str` but can never return [unexpected-never]
+ ERROR lib/tests/streamlit/elements/radio_test.py:843:42-45: Function declared to return `str` but can never return [unexpected-never]
+ ERROR lib/tests/streamlit/runtime/agent/json_encoding_test.py:77:29-38: Function declared to return `list[int]` but can never return [unexpected-never]
+ ERROR lib/tests/streamlit/runtime/agent/json_encoding_test.py:84:31-34: Function declared to return `Any` but can never return [unexpected-never]
+ ERROR lib/tests/streamlit/runtime/agent/widget_values_test.py:198:35-39: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR lib/tests/streamlit/runtime/agent/widget_values_test.py:320:38-41: Function declared to return `str` but can never return [unexpected-never]
+ ERROR lib/tests/streamlit/runtime/agent/widget_values_test.py:492:27-31: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR lib/tests/streamlit/runtime/agent/widget_values_test.py:514:38-42: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR lib/tests/streamlit/runtime/agent/widget_writes_test.py:492:41-44: Function declared to return `str` but can never return [unexpected-never]
+ ERROR lib/tests/streamlit/runtime/backend_operation_handler_test.py:132:14-38: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR lib/tests/streamlit/runtime/caching/cache_data_api_test.py:1422:70-75: Function declared to return `bytes` but can never return [unexpected-never]
+ ERROR lib/tests/streamlit/runtime/caching/hashing_test.py:1561:34-37: Function declared to return `str` but can never return [unexpected-never]
+ ERROR lib/tests/streamlit/runtime/dataframe_chunk_handler_test.py:126:68-74: Function declared to return `object` but can never return [unexpected-never]
+ ERROR lib/tests/streamlit/runtime/fragment_test.py:1535:48-59: Function declared to return `bool | None` but can never return [unexpected-never]
+ ERROR lib/tests/streamlit/runtime/scriptrunner/code_exec_test.py:239:48-59: Function declared to return `bool | None` but can never return [unexpected-never]
+ ERROR lib/tests/streamlit/runtime/scriptrunner/code_exec_test.py:316:51-62: Function declared to return `bool | None` but can never return [unexpected-never]
+ ERROR lib/tests/streamlit/runtime/scriptrunner/code_exec_test.py:344:52-63: Function declared to return `bool | None` but can never return [unexpected-never]
+ ERROR lib/tests/streamlit/runtime/state/test_presentation.py:74:40-43: Function declared to return `Any` but can never return [unexpected-never]
+ ERROR lib/tests/streamlit/runtime/state/test_presentation.py:99:59-62: Function declared to return `Any` but can never return [unexpected-never]
+ ERROR lib/tests/streamlit/string_util_test.py:398:31-34: Function declared to return `int` but can never return [unexpected-never]
+ ERROR lib/tests/streamlit/util_test.py:99:14-19: Function declared to return `HASH` but can never return [unexpected-never]
+ ERROR lib/tests/streamlit/web/server/starlette/starlette_auth_routes_test.py:686:65-79: Function declared to return `dict[str, Any]` but can never return [unexpected-never]
+ ERROR lib/tests/streamlit/web/server/starlette/starlette_auth_routes_test.py:1348:38-53: Function declared to return `tuple[Any, str]` but can never return [unexpected-never]
+ ERROR lib/tests/streamlit/web/server/starlette/starlette_path_security_middleware_test.py:405:44-48: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR lib/tests/streamlit/web/server/starlette/starlette_path_security_middleware_test.py:607:44-48: Function declared to return `bool` but can never return [unexpected-never]
dulwich (https://github.com/dulwich/dulwich)
+ ERROR dulwich/cli.py:875:40-45: Function declared to return `bytes` but can never return [unexpected-never]
+ ERROR dulwich/cli.py:879:41-44: Function declared to return `int` but can never return [unexpected-never]
+ ERROR dulwich/cli.py:883:42-45: Function declared to return `int` but can never return [unexpected-never]
+ ERROR dulwich/object_store.py:896:50-55: Function declared to return `float` but can never return [unexpected-never]
vision (https://github.com/pytorch/vision)
+ ERROR torchvision/transforms/v2/functional/_misc.py:230:6-21: Function declared to return `Image` but can never return [unexpected-never]
strawberry (https://github.com/strawberry-graphql/strawberry)
+ ERROR strawberry/http/async_base_view.py:160:10-18: Function declared to return `Response` but can never return [unexpected-never]
pandera (https://github.com/pandera-dev/pandera)
+ ERROR pandera/api/checks.py:244:10-21: Function declared to return `CheckResult` but can never return [unexpected-never]
+ ERROR pandera/api/dataframe/components.py:168:10-21: Function declared to return `TDataObject` but can never return [unexpected-never]
+ ERROR pandera/api/dataframe/container.py:331:10-21: Function declared to return `TDataObject` but can never return [unexpected-never]
+ ERROR pandera/api/pandas/container.py:253:10-22: Function declared to return `DataFrame` but can never return [unexpected-never]
+ ERROR pandera/api/parsers.py:324:10-22: Function declared to return `ParserResult` but can never return [unexpected-never]
+ ERROR pandera/api/xarray/container.py:207:10-22: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR pandera/api/xarray/container.py:368:10-21: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR pandera/api/xarray/container.py:551:10-20: Function declared to return `Unknown` but can never return [unexpected-never]
+ ERROR pandera/engines/engine.py:133:38-46: Function declared to return `DataType` but can never return [unexpected-never]
+ ERROR pandera/typing/common.py:172:10-13: Function declared to return `str` but can never return [unexpected-never]
+ ERROR pandera/typing/common.py:186:10-13: Function declared to return `str` but can never return [unexpected-never]
+ ERROR pandera/typing/common.py:217:10-26: Function declared to return `str | FieldDtype` but can never return [unexpected-never]
+ ERROR tests/pandas/checks_fixtures.py:40:54-58: Function declared to return `bool` but can never return [unexpected-never]
zulip (https://github.com/zulip/zulip)
+ ERROR zerver/lib/validator.py:632:27-48: Function declared to return `Iterator[WildValue]` but can never return [unexpected-never]
+ ERROR zerver/lib/validator.py:635:41-45: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR zerver/lib/validator.py:638:47-56: Function declared to return `WildValue` but can never return [unexpected-never]
+ ERROR zerver/lib/validator.py:644:57-66: Function declared to return `WildValue` but can never return [unexpected-never]
+ ERROR zerver/lib/validator.py:647:23-36: Function declared to return `Iterator[str]` but can never return [unexpected-never]
+ ERROR zerver/lib/validator.py:650:25-46: Function declared to return `Iterator[WildValue]` but can never return [unexpected-never]
+ ERROR zerver/lib/validator.py:653:24-57: Function declared to return `Iterator[tuple[str, WildValue]]` but can never return [unexpected-never]
+ ERROR zerver/tests/test_auth_backends.py:2159:89-95: Function declared to return `object` but can never return [unexpected-never]
+ ERROR zerver/tests/test_auth_backends.py:3745:87-93: Function declared to return `object` but can never return [unexpected-never]
+ ERROR zerver/tests/test_auth_backends.py:5862:91-97: Function declared to return `object` but can never return [unexpected-never]
+ ERROR zerver/tests/test_auth_backends.py:5907:14-20: Function declared to return `object` but can never return [unexpected-never]
+ ERROR zerver/tests/test_cache.py:286:47-64: Function declared to return `list[UserProfile]` but can never return [unexpected-never]
+ ERROR zerver/tests/test_cache.py:317:14-17: Function declared to return `str` but can never return [unexpected-never]
+ ERROR zerver/tests/test_cache.py:322:14-31: Function declared to return `list[UserProfile]` but can never return [unexpected-never]
+ ERROR zerver/tests/test_decorators.py:144:14-26: Function declared to return `HttpResponse` but can never return [unexpected-never]
+ ERROR zerver/tests/test_decorators.py:150:14-26: Function declared to return `HttpResponse` but can never return [unexpected-never]
+ ERROR zerver/tests/test_decorators.py:388:14-26: Function declared to return `HttpResponse` but can never return [unexpected-never]
+ ERROR zerver/tests/test_decorators.py:413:14-26: Function declared to return `HttpResponse` but can never return [unexpected-never]
+ ERROR zerver/tests/test_decorators.py:441:14-26: Function declared to return `HttpResponse` but can never return [unexpected-never]
+ ERROR zerver/tests/test_outgoing_webhook_system.py:35:71-74: Function declared to return `Any` but can never return [unexpected-never]
+ ERROR zerver/tests/test_outgoing_webhook_system.py:39:61-64: Function declared to return `Any` but can never return [unexpected-never]
+ ERROR zerver/tests/test_outgoing_webhook_system.py:43:64-67: Function declared to return `Any` but can never return [unexpected-never]
+ ERROR zerver/tests/test_slack_importer.py:3448:72-77: Function declared to return `Realm` but can never return [unexpected-never]
+ ERROR zerver/tests/test_slack_importer.py:3492:76-81: Function declared to return `Realm` but can never return [unexpected-never]
+ ERROR zerver/tests/test_slack_importer.py:3549:86-91: Function declared to return `Realm` but can never return [unexpected-never]
+ ERROR zerver/tests/test_timeout.py:14:40-43: Function declared to return `int` but can never return [unexpected-never]
+ ERROR zerver/tests/test_user_groups.py:2304:25-37: Function declared to return `HttpResponse` but can never return [unexpected-never]
+ ERROR zerver/tests/test_webhooks_common.py:76:86-98: Function declared to return `HttpResponse` but can never return [unexpected-never]
+ ERROR zerver/tests/test_webhooks_common.py:80:83-95: Function declared to return `HttpResponse` but can never return [unexpected-never]
steam.py (https://github.com/Gobot1234/steam.py)
+ ERROR steam/ext/tf2/backpack.py:281:22-25: Function declared to return `str` but can never return [unexpected-never]
ibis (https://github.com/ibis-project/ibis)
+ ERROR ibis/expr/datatypes/value.py:33:26-37: Function declared to return `DataType` but can never return [unexpected-never]
+ ERROR ibis/expr/schema.py:446:38-44: Function declared to return `Schema` but can never return [unexpected-never]
+ ERROR ibis/expr/schema.py:452:30-36: Function declared to return `Schema` but can never return [unexpected-never]
+ ERROR ibis/expr/types/core.py:136:27-31: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR ibis/expr/types/strings.py:413:40-44: Function declared to return `bool` but can never return [unexpected-never]
bokeh (https://github.com/bokeh/bokeh)
+ ERROR src/bokeh/core/property/wrappers.py:175:30-33: Function declared to return `Any` but can never return [unexpected-never]
+ ERROR src/bokeh/core/serialization.py:754:49-54: Function declared to return `float` but can never return [unexpected-never]
+ ERROR src/bokeh/document/locking.py:336:41-44: Function declared to return `Any` but can never return [unexpected-never]
+ ERROR src/bokeh/embed/standalone.py:63:30-45: Function declared to return `tuple[str, str]` but can never return [unexpected-never]
+ ERROR src/bokeh/embed/standalone.py:70:85-99: Function declared to return `dict[str, Any]` but can never return [unexpected-never]
beartype (https://github.com/beartype/beartype)
+ ERROR beartype/_util/hint/pep/proposal/pep484585/pep484585func.py:209:6-9: Function declared to return `str` but can never return [unexpected-never]
+ ERROR beartype/_util/hint/pep/proposal/pep695.py:306:6-10: Function declared to return `TypeForm[Any]` but can never return [unexpected-never]
static-frame (https://github.com/static-frame/static-frame)
+ ERROR static_frame/core/container.py:170:27-31: Function declared to return `bool` but can never return [unexpected-never]
antidote (https://github.com/Finistere/antidote)
+ ERROR tests/core/test_catalog_test.py:367:21-27: Function declared to return `object` but can never return [unexpected-never]
aiohttp (https://github.com/aio-libs/aiohttp)
+ ERROR aiohttp/web_urldispatcher.py:919:50-64: Function declared to return `StreamResponse` but can never return [unexpected-never]
mypy (https://github.com/python/mypy)
+ ERROR mypy/nodes.py:241:50-51: Function declared to return `T` but can never return [unexpected-never]
+ ERROR mypy/nodes.py:2464:28-36: Function declared to return `dict[str, Any]` but can never return [unexpected-never]
+ ERROR mypy/types.py:334:50-51: Function declared to return `T` but can never return [unexpected-never]
+ ERROR mypy/util.py:654:40-44: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR mypyc/ir/rtypes.py:169:51-52: Function declared to return `T` but can never return [unexpected-never]
+ ERROR mypyc/ir/rtypes.py:992:61-68: Function declared to return `RStruct` but can never return [unexpected-never]
+ ERROR mypyc/ir/rtypes.py:1327:61-67: Function declared to return `RArray` but can never return [unexpected-never]
pyodide (https://github.com/pyodide/pyodide)
+ ERROR pyodide-build/pyodide_build/cli/skeleton.py:85:78-81: Function declared to return `int` but can never return [unexpected-never]
+ ERROR pyodide-build/pyodide_build/cli/skeleton.py:122:74-77: Function declared to return `int` but can never return [unexpected-never]
rclip (https://github.com/yurijmikhalevich/rclip)
+ ERROR rclip/utils/native_heif.py:38:103-114: Function declared to return `Image` but can never return [unexpected-never]
hydpy (https://github.com/hydpy-dev/hydpy)
+ ERROR hydpy/core/propertytools.py:97:35-39: Function declared to return `T_co` but can never return [unexpected-never]
+ ERROR hydpy/core/variabletools.py:537:41-44: Function declared to return `Any` but can never return [unexpected-never]
+ ERROR hydpy/interfaces/exchangeinterfaces.py:24:24-29: Function declared to return `float` but can never return [unexpected-never]
+ ERROR hydpy/interfaces/routinginterfaces.py:22:46-63: Function declared to return `tuple[float, ...]` but can never return [unexpected-never]
+ ERROR hydpy/interfaces/routinginterfaces.py:58:46-63: Function declared to return `tuple[float, ...]` but can never return [unexpected-never]
+ ERROR hydpy/interfaces/routinginterfaces.py:113:34-39: Function declared to return `float` but can never return [unexpected-never]
+ ERROR hydpy/interfaces/routinginterfaces.py:127:32-37: Function declared to return `float` but can never return [unexpected-never]
+ ERROR hydpy/interfaces/routinginterfaces.py:132:38-43: Function declared to return `float` but can never return [unexpected-never]
+ ERROR hydpy/interfaces/routinginterfaces.py:152:71-76: Function declared to return `float` but can never return [unexpected-never]
+ ERROR hydpy/interfaces/routinginterfaces.py:184:71-76: Function declared to return `float` but can never return [unexpected-never]
+ ERROR hydpy/interfaces/routinginterfaces.py:193:73-78: Function declared to return `float` but can never return [unexpected-never]
+ ERROR hydpy/interfaces/routinginterfaces.py:217:73-78: Function declared to return `float` but can never return [unexpected-never]
+ ERROR hydpy/interfaces/routinginterfaces.py:253:34-39: Function declared to return `float` but can never return [unexpected-never]
+ ERROR hydpy/interfaces/routinginterfaces.py:258:33-38: Function declared to return `float` but can never return [unexpected-never]
anyio (https://github.com/agronholm/anyio)
+ ERROR src/anyio/_core/_tempfile.py:550:6-29: Function declared to return `tuple[int, bytes | str]` but can never return [unexpected-never]
+ ERROR src/anyio/_core/_tempfile.py:587:6-17: Function declared to return `bytes | str` but can never return [unexpected-never]
pandas (https://github.com/pandas-dev/pandas)
+ ERROR pandas/core/arrays/arrow/accessors.py:213:27-40: Function declared to return `Iterator[Any]` but can never return [unexpected-never]
+ ERROR pandas/core/arrays/base.py:309:10-14: Function declared to return `Self@ExtensionArray` but can never return [unexpected-never]
+ ERROR pandas/core/arrays/base.py:351:10-14: Function declared to return `Self@ExtensionArray` but can never return [unexpected-never]
+ ERROR pandas/core/arrays/base.py:498:55-65: Function declared to return `Any | Self@ExtensionArray` but can never return [unexpected-never]
+ ERROR pandas/core/arrays/base.py:585:26-29: Function declared to return `int` but can never return [unexpected-never]
+ ERROR pandas/core/arrays/base.py:769:24-38: Function declared to return `ExtensionDtype` but can never return [unexpected-never]
+ ERROR pandas/core/arrays/base.py:860:25-28: Function declared to return `int` but can never return [unexpected-never]
+ ERROR pandas/core/arrays/base.py:978:23-58: Function declared to return `ExtensionArrayNaResult | ndarray` but can never return [unexpected-never]
+ ERROR pandas/core/arrays/base.py:2033:10-14: Function declared to return `Self@ExtensionArray` but can never return [unexpected-never]
+ ERROR pandas/core/arrays/base.py:2131:23-27: Function declared to return `Self@ExtensionArray` but can never return [unexpected-never]
+ ERROR pandas/core/arrays/base.py:2399:62-66: Function declared to return `Self@ExtensionArray` but can never return [unexpected-never]
+ ERROR pandas/core/arrays/base.py:3465:46-59: Function declared to return `NAType | bool` but can never return [unexpected-never]
+ ERROR pandas/core/arrays/base.py:3474:46-59: Function declared to return `NAType | bool` but can never return [unexpected-never]
+ ERROR pandas/core/arrays/base.py:3487:29-33: Function declared to return `Self@ExtensionArrayNaResult` but can never return [unexpected-never]
+ ERROR pandas/core/arrays/datetimelike.py:215:31-55: Function declared to return `type[DatetimeLikeScalar]` but can never return [unexpected-never]
+ ERROR pandas/core/arrays/datetimelike.py:225:50-63: Function declared to return `NaTType | Period | Timedelta | Timestamp` but can never return [unexpected-never]
+ ERROR pandas/core/arrays/datetimelike.py:247:10-51: Function declared to return `datetime64 | signedinteger[_64Bit] | timedelta64` but can never return [unexpected-never]
+ ERROR pandas/core/arrays/datetimelike.py:326:10-33: Function declared to return `ndarray[tuple[Any, ...], dtype[object_]]` but can never return [unexpected-never]
+ ERROR pandas/core/arrays/datetimelike.py:1833:56-66: Function declared to return `ndarray` but can never return [unexpected-never]
+ ERROR pandas/core/arrays/datetimelike.py:1902:10-14: Function declared to return `Self@TimelikeOps` but can never return [unexpected-never]
+ ERROR pandas/core/arrays/masked.py:439:10-39: Function declared to return `tuple[ndarray, ndarray]` but can never return [unexpected-never]
+ ERROR pandas/core/arrays/numeric.py:106:36-67: Function declared to return `Mapping[dtype, NumericDtype]` but can never return [unexpected-never]
+ ERROR pandas/core/arrays/numeric.py:128:77-87: Function declared to return `ndarray` but can never return [unexpected-never]
+ ERROR pandas/core/base.py:296:24-32: Function declared to return `ExtensionDtype | dtype` but can never return [unexpected-never]
+ ERROR pandas/core/base.py:301:26-53: Function declared to return `ExtensionArray | ndarray` but can never return [unexpected-never]
+ ERROR pandas/core/base.py:377:26-29: Function declared to return `int` but can never return [unexpected-never]
+ ERROR pandas/core/base.py:535:24-38: Function declared to return `ExtensionArray` but can never return [unexpected-never]
+ ERROR pandas/core/dtypes/base.py:197:23-34: Function declared to return `type[Any]` but can never return [unexpected-never]
+ ERROR pandas/core/dtypes/base.py:225:23-26: Function declared to return `str` but can never return [unexpected-never]
+ ERROR pandas/core/dtypes/base.py:243:39-61: Function declared to return `type[ExtensionArray]` but can never return [unexpected-never]
+ ERROR pandas/core/generic.py:5061:10-21: Function declared to return `Self@NDFrame | None` but can never return [unexpected-never]
+ ERROR pandas/core/generic.py:6589:26-35: Function declared to return `ExtensionArray | ndarray` but can never return [unexpected-never]
+ ERROR pandas/core/groupby/ops.py:1492:71-78: Function declared to return `NDFrame` but can never return [unexpected-never]
+ ERROR pandas/core/indexing.py:1380:54-58: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR pandas/core/internals/blocks.py:1748:26-30: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR pandas/core/internals/blocks.py:1753:31-45: Function declared to return `ExtensionArray` but can never return [unexpected-never]
+ ERROR pandas/core/internals/blocks.py:1759:60-70: Function declared to return `ndarray` but can never return [unexpected-never]
+ ERROR pandas/core/internals/managers.py:388:45-49: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR pandas/core/strings/accessor.py:258:27-40: Function declared to return `Iterator[Any]` but can never return [unexpected-never]
+ ERROR pandas/io/formats/xml.py:165:30-35: Function declared to return `bytes` but can never return [unexpected-never]
+ ERROR pandas/io/formats/xml.py:253:34-37: Function declared to return `str` but can never return [unexpected-never]
+ ERROR pandas/io/html.py:255:36-46: Function declared to return `str | None` but can never return [unexpected-never]
+ ERROR pandas/io/html.py:378:40-44: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR pandas/io/json/_json.py:1511:25-43: Function declared to return `DataFrame | Series` but can never return [unexpected-never]
+ ERROR pandas/io/parquet.py:203:53-62: Function declared to return `DataFrame` but can never return [unexpected-never]
+ ERROR pandas/io/parsers/base_parser.py:191:10-195:6: Function declared to return `tuple[Index | None, MultiIndex | Sequence[Hashable], Mapping[Hashable, AnyArrayLike]]` but can never return [unexpected-never]
+ ERROR pandas/io/sql.py:1621:10-20: Function declared to return `int | None` but can never return [unexpected-never]
+ ERROR pandas/io/xml.py:191:29-56: Function declared to return `list[dict[str, str | None]]` but can never return [unexpected-never]
+ ERROR pandas/io/xml.py:412:33-42: Function declared to return `list[Any]` but can never return [unexpected-never]
+ ERROR pandas/io/xml.py:445:10-34: Function declared to return `Element | Unknown` but can never return [unexpected-never]
+ ERROR pandas/tests/series/test_ufunc.py:742:27-31: Function declared to return `bool` but can never return [unexpected-never]
pytensor (https://github.com/pymc-devs/pytensor)
+ ERROR pytensor/tensor/__init__.py:91:61-64: Function declared to return `int` but can never return [unexpected-never]
werkzeug (https://github.com/pallets/werkzeug)
+ ERROR src/werkzeug/serving.py:52:45-50: Function declared to return `Any` but can never return [unexpected-never]
+ ERROR src/werkzeug/wrappers/request.py:903:63-68: Function declared to return `Any` but can never return [unexpected-never]
sphinx (https://github.com/sphinx-doc/sphinx)
+ ERROR sphinx/application.py:1945:72-75: Function declared to return `str` but can never return [unexpected-never]
+ ERROR sphinx/directives/__init__.py:100:70-78: Function declared to return `ObjDescT` but can never return [unexpected-never]
+ ERROR sphinx/domains/c/_symbol.py:76:27-31: Function declared to return `Self@Symbol` but can never return [unexpected-never]
+ ERROR sphinx/domains/python/_object.py:410:70-73: Function declared to return `str` but can never return [unexpected-never]
+ ERROR sphinx/ext/autodoc/_legacy_class_based/_documenters.py:168:10-14: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR sphinx/ext/autodoc/_legacy_class_based/_documenters.py:216:10-38: Function declared to return `tuple[str | None, list[str]]` but can never return [unexpected-never]
+ ERROR sphinx/ext/autodoc/_legacy_class_based/_documenters.py:497:53-84: Function declared to return `tuple[bool, list[ObjectMember]]` but can never return [unexpected-never]
+ ERROR sphinx/ext/graphviz.py:363:6-21: Function declared to return `tuple[str, str]` but can never return [unexpected-never]
websockets (https://github.com/aaugustin/websockets)
+ ERROR src/websockets/asyncio/client.py:671:10-23: Function declared to return `socket` but can never return [unexpected-never]
+ ERROR src/websockets/asyncio/router.py:29:10-16: Function declared to return `Server` but can never return [unexpected-never]
+ ERROR src/websockets/asyncio/router.py:36:10-16: Function declared to return `Server` but can never return [unexpected-never]
+ ERROR src/websockets/sync/client.py:918:10-23: Function declared to return `socket` but can never return [unexpected-never]
+ ERROR src/websockets/sync/router.py:29:10-16: Function declared to return `Server` but can never return [unexpected-never]
+ ERROR src/websockets/sync/router.py:36:10-16: Function declared to return `Server` but can never return [unexpected-never]
+ ERROR src/websockets/trio/client.py:689:10-25: Function declared to return `Stream` but can never return [unexpected-never]
meson (https://github.com/mesonbuild/meson)
+ ERROR mesonbuild/backend/backends.py:316:89-107: Function declared to return `dict[Unknown, Unknown] | None` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:648:52-70: Function declared to return `tuple[str, bool]` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:661:72-75: Function declared to return `int` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:665:67-78: Function declared to return `list[str]` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:670:79-98: Function declared to return `tuple[bool, bool]` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:675:76-95: Function declared to return `tuple[bool, bool]` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:678:49-53: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:706:50-65: Function declared to return `str | None` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:709:50-54: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:734:47-58: Function declared to return `list[str]` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:754:80-99: Function declared to return `tuple[bool, bool]` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:766:52-71: Function declared to return `tuple[bool, bool]` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:785:85-104: Function declared to return `tuple[bool, bool]` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:844:74-92: Function declared to return `tuple[int, bool]` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:849:77-95: Function declared to return `tuple[int, bool]` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:854:80-99: Function declared to return `tuple[bool, bool]` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:878:56-79: Function declared to return `list[str] | None` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:881:77-106: Function declared to return `tuple[str, ...] | None` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:889:57-76: Function declared to return `tuple[bool, bool]` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:1051:69-80: Function declared to return `list[str]` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:1096:31-42: Function declared to return `list[str]` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:1114:48-67: Function declared to return `tuple[bool, bool]` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:1118:31-42: Function declared to return `list[str]` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:1122:31-42: Function declared to return `list[str]` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:1141:44-55: Function declared to return `list[str]` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:1145:39-50: Function declared to return `list[str]` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:1285:53-64: Function declared to return `list[str]` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:1288:50-61: Function declared to return `list[str]` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:1294:43-54: Function declared to return `list[str]` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:1335:77-94: Function declared to return `int | str` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:1341:54-77: Function declared to return `list[str] | None` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:1344:39-50: Function declared to return `list[str]` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:1347:50-53: Function declared to return `str` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:1350:33-36: Function declared to return `str` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:1353:42-45: Function declared to return `str` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:1356:62-73: Function declared to return `list[str]` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:1363:63-74: Function declared to return `list[str]` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:1579:37-40: Function declared to return `str` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:1607:41-58: Function declared to return `tuple[str, ...]` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:1610:52-63: Function declared to return `list[str]` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:1613:60-63: Function declared to return `str` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:1717:73-84: Function declared to return `list[str]` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:1722:77-110: Function declared to return `tuple[list[str], list[str]]` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:1749:35-43: Function declared to return `Compiler` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:1777:33-37: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:1781:36-39: Function declared to return `str` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/compilers.py:1789:44-53: Function declared to return `list[str]` but can never return [unexpected-never]
+ ERROR mesonbuild/compilers/mixins/qcc.py:43:52-63: Function declared to return `list[str]` but can never return [unexpected-never]
+ ERROR mesonbuild/dependencies/base.py:103:41-46: Function declared to return `Any` but can never return [unexpected-never]
+ ERROR mesonbuild/dependencies/base.py:252:83-93: Function declared to return `Dependency` but can never return [unexpected-never]
+ ERROR mesonbuild/interpreter/interpreter.py:277:36-81: Function declared to return `tuple[tuple[object], dict[str, object]]` but can never return [unexpected-never]
+ ERROR mesonbuild/interpreterbase/baseobjects.py:219:34-49: Function declared to return `int | None` but can never return [unexpected-never]
+ ERROR mesonbuild/interpreterbase/baseobjects.py:223:28-81: Function declared to return `Iterator[HoldableObject | MesonInterpreterObject | Sequence[TYPE_elementary] | Sequence[TYPE_var] | bool | dict[str, TYPE_elementary] | dict[str, TYPE_var] | int | str | tuple[TYPE_var, ...]]` but can never return [unexpected-never]
+ ERROR mesonbuild/interpreterbase/baseobjects.py:226:23-26: Function declared to return `int` but can never return [unexpected-never]
+ ERROR mesonbuild/interpreterbase/decorators.py:815:59-62: Function declared to return `str` but can never return [unexpected-never]
+ ERROR mesonbuild/interpreterbase/decorators.py:819:58-61: Function declared to return `str` but can never return [unexpected-never]
+ ERROR mesonbuild/linkers/linkers.py:116:34-47: Function declared to return `RSPFileSyntax` but can never return [unexpected-never]
+ ERROR mesonbuild/linkers/linkers.py:207:57-76: Function declared to return `tuple[bool, bool]` but can never return [unexpected-never]
+ ERROR mesonbuild/linkers/linkers.py:234:31-42: Function declared to return `list[str]` but can never return [unexpected-never]
+ ERROR mesonbuild/linkers/linkers.py:255:56-67: Function declared to return `list[str]` but can never return [unexpected-never]
+ ERROR mesonbuild/linkers/linkers.py:259:43-54: Function declared to return `list[str]` but can never return [unexpected-never]
+ ERROR mesonbuild/linkers/linkers.py:267:36-47: Function declared to return `list[str]` but can never return [unexpected-never]
+ ERROR mesonbuild/linkers/linkers.py:314:31-42: Function declared to return `list[str]` but can never return [unexpected-never]
+ ERROR mesonbuild/options.py:356:48-50: Function declared to return `_T` but can never return [unexpected-never]
+ ERROR mesonbuild/rewriter.py:115:47-55: Function declared to return `BaseNode` but can never return [unexpected-never]
+ ERROR mesonbuild/rewriter.py:204:46-54: Function declared to return `BaseNode` but can never return [unexpected-never]
+ ERROR mesonbuild/utils/universal.py:2798:54-56: Function declared to return `_T` but can never return [unexpected-never]
dd-trace-py (https://github.com/DataDog/dd-trace-py)
+ ERROR ddtrace/debugging/_signal/model.py:329:6-12: Function declared to return `Signal` but can never return [unexpected-never]
+ ERROR ddtrace/internal/module.py:40:57-73: Function declared to return `dict[str, Any]` but can never return [unexpected-never]
+ ERROR ddtrace/internal/safety.py:54:54-67: Function declared to return `Any | None` but can never return [unexpected-never]
+ ERROR ddtrace/internal/settings/_core.py:42:41-44: Function declared to return `Any` but can never return [unexpected-never]
+ ERROR ddtrace/profiling/__init__.py:36:40-43: Function declared to return `Any` but can never return [unexpected-never]
core (https://github.com/home-assistant/core)
+ ERROR homeassistant/components/alexa/capabilities.py:200:42-56: Function declared to return `dict[str, Any]` but can never return [unexpected-never]
+ ERROR homeassistant/components/alexa/handlers.py:1545:6-19: Function declared to return `AlexaResponse` but can never return [unexpected-never]
+ ERROR homeassistant/components/alexa/handlers.py:2127:6-19: Function declared to return `AlexaResponse` but can never return [unexpected-never]
+ ERROR homeassistant/components/homeassistant_hardware/firmware_config_flow.py:557:10-26: Function declared to return `ConfigFlowResult` but can never return [unexpected-never]
+ ERROR homeassistant/components/http/server.py:412:53-71: Function declared to return `StreamResponse` but can never return [unexpected-never]
+ ERROR homeassistant/components/http/server.py:645:54-72: Function declared to return `StreamResponse` but can never return [unexpected-never]
+ ERROR homeassistant/components/marketplace/__init__.py:79:61-79: Function declared to return `StreamResponse` but can never return [unexpected-never]
+ ERROR homeassistant/components/roborock/vacuum.py:669:52-67: Function declared to return `dict[str, bool | dict[str, JsonValueType] | float | int | list[JsonValueType] | str | None] | None` but can never return [unexpected-never]
+ ERROR homeassistant/components/roborock/vacuum.py:889:33-48: Function declared to return `dict[str, bool | dict[str, JsonValueType] | float | int | list[JsonValueType] | str | None] | None` but can never return [unexpected-never]
+ ERROR homeassistant/components/unifiprotect/entity.py:719:40-43: Function declared to return `Any` but can never return [unexpected-never]
+ ERROR homeassistant/components/zha/config_flow.py:196:10-26: Function declared to return `ConfigFlowResult` but can never return [unexpected-never]
+ ERROR homeassistant/config_entries.py:3244:62-73: Function declared to return `OptionsFlow` but can never return [unexpected-never]
+ ERROR homeassistant/helpers/template/states.py:97:45-48: Function declared to return `Any` but can never return [unexpected-never]
+ ERROR homeassistant/util/read_only_dict.py:7:45-48: Function declared to return `Any` but can never return [unexpected-never]
poetry (https://github.com/python-poetry/poetry)
+ ERROR tests/conftest.py:190:60-70: Function declared to return `str | None` but can never return [unexpected-never]
+ ERROR tests/conftest.py:197:10-27: Function declared to return `Unknown | None` but can never return [unexpected-never]
+ ERROR tests/conftest.py:213:10-27: Function declared to return `Unknown | None` but can never return [unexpected-never]
+ ERROR tests/publishing/test_hash_manager.py:58:48-51: Function declared to return `Any` but can never return [unexpected-never]
+ ERROR tests/publishing/test_hash_manager.py:74:52-55: Function declared to return `Any` but can never return [unexpected-never]
+ ERROR tests/utils/test_helpers.py:262:30-33: Function declared to return `int` but can never return [unexpected-never]
+ ERROR src/poetry/utils/helpers.py:221:40-44: Function declared to return `Path` but can never return [unexpected-never]
jinja (https://github.com/pallets/jinja)
+ ERROR src/jinja2/loaders.py:77:10-61: Function declared to return `tuple[str, str | None, (() -> bool) | None]` but can never return [unexpected-never]
+ ERROR src/jinja2/loaders.py:101:33-42: Function declared to return `list[str]` but can never return [unexpected-never]
+ ERROR src/jinja2/nodes.py:472:64-69: Function declared to return `Any` but can never return [unexpected-never]
+ ERROR src/jinja2/runtime.py:862:41-46: Function declared to return `Any` but can never return [unexpected-never]
spack (https://github.com/spack/spack)
+ ERROR lib/spack/spack/repo.py:1771:10-43: Function declared to return `dict[str, Exception | Repo]` but can never return [unexpected-never]
+ ERROR lib/spack/spack/util/filesystem.py:557:45-48: Function declared to return `str` but can never return [unexpected-never]
+ ERROR lib/spack/spack/util/lock.py:378:32-36: Function declared to return `bool` but can never return [unexpected-never]
xarray (https://github.com/pydata/xarray)
+ ERROR xarray/computation/weighted.py:448:10-18: Function declared to return `T_Xarray` but can never return [unexpected-never]
+ ERROR xarray/computation/weighted.py:459:10-18: Function declared to return `T_Xarray` but can never return [unexpected-never]
+ ERROR xarray/computation/weighted.py:470:10-18: Function declared to return `T_Xarray` but can never return [unexpected-never]
+ ERROR xarray/computation/weighted.py:481:10-18: Function declared to return `T_Xarray` but can never return [unexpected-never]
+ ERROR xarray/computation/weighted.py:492:10-18: Function declared to return `T_Xarray` but can never return [unexpected-never]
+ ERROR xarray/computation/weighted.py:503:10-18: Function declared to return `T_Xarray` but can never return [unexpected-never]
+ ERROR xarray/computation/weighted.py:515:10-18: Function declared to return `T_Xarray` but can never return [unexpected-never]
+ ERROR xarray/core/datatree.py:915:10-20: Function declared to return `ndarray` but can never return [unexpected-never]
+ ERROR xarray/core/datatree.py:1992:47-51: Function declared to return `Self@DataTree` but can never return [unexpected-never]
+ ERROR xarray/core/indexes.py:248:34-42: Function declared to return `Index` but can never return [unexpected-never]
+ ERROR xarray/tests/arrays.py:80:10-20: Function declared to return `ndarray` but can never return [unexpected-never]
+ ERROR xarray/tests/arrays.py:196:10-20: Function declared to return `ndarray` but can never return [unexpected-never]
+ ERROR xarray/tests/test_computation.py:377:32-42: Function declared to return `ndarray` but can never return [unexpected-never]
+ ERROR xarray/tests/test_computation.py:1786:47-57: Function declared to return `ndarray` but can never return [unexpected-never]
+ ERROR xarray/tests/test_utils.py:462:51-58: Function declared to return `IO[Any]` but can never return [unexpected-never]
kornia (https://github.com/kornia/kornia)
+ ERROR kornia/augmentation/_2d/mix/base.py:335:53-75: Function declared to return `Unknown | None` but can never return [unexpected-never]
+ ERROR kornia/augmentation/_2d/mix/base.py:341:35-57: Function declared to return `Unknown | None` but can never return [unexpected-never]
+ ERROR kornia/geometry/boxes.py:649:85-90: Function declared to return `Boxes` but can never return [unexpected-never]
+ ERROR kornia/geometry/keypoints.py:500:57-68: Function declared to return `Keypoints3D` but can never return [unexpected-never]
+ ERROR kornia/geometry/keypoints.py:510:59-70: Function declared to return `Keypoints3D` but can never return [unexpected-never]
pydantic (https://github.com/pydantic/pydantic)
+ ERROR pydantic/_internal/_generate_schema.py:745:49-59: Function declared to return `AfterValidatorFunctionSchema | AnySchema | ArgumentsSchema | ArgumentsV3Schema | BeforeValidatorFunctionSchema | BoolSchema | BytesSchema | CallSchema | CallableSchema | ChainSchema | ComplexSchema | CounterSchema | CustomErrorSchema | DataclassArgsSchema | DataclassSchema | DateSchema | DatetimeSchema | DecimalSchema | DefinitionReferenceSchema | DefinitionsSchema | DequeSchema | DictSchema | EllipsisSchema | EnumSchema | FloatSchema | FractionSchema | FrozenDictSchema | FrozenSetSchema | GeneratorSchema | IntSchema | InvalidSchema | IsInstanceSchema | IsSubclassSchema | JsonOrPythonSchema | JsonSchema | LaxOrStrictSchema | ListSchema | LiteralSchema | MissingSentinelSchema | ModelFieldsSchema | ModelSchema | MultiHostUrlSchema | NamedTupleSchema | NoneSchema | NullableSchema | OrderedDictSchema | PlainValidatorFunctionSchema | SetSchema | StringSchema | TaggedUnionSchema | TimeSchema | TimedeltaSchema | TupleSchema | TypedDictSchema | UnionSchema | UrlSchema | UuidSchema | WithDefaultSchema | WrapValidatorFunctionSchema` but can never return [unexpected-never]
+ ERROR pydantic/json_schema.py:630:68-83: Function declared to return `dict[str, Any]` but can never return [unexpected-never]
+ ERROR pydantic/json_schema.py:2647:93-108: Function declared to return `dict[str, Any]` but can never return [unexpected-never]
scrapy (https://github.com/scrapy/scrapy)
+ ERROR scrapy/http/response/__init__.py:232:23-26: Function declared to return `str` but can never return [unexpected-never]
+ ERROR scrapy/http/response/__init__.py:238:42-54: Function declared to return `SelectorList` but can never return [unexpected-never]
+ ERROR scrapy/http/response/__init__.py:244:47-59: Function declared to return `SelectorList` but can never return [unexpected-never]
+ ERROR scrapy/http/response/__init__.py:250:44-56: Function declared to return `SelectorList` but can never return [unexpected-never]
+ ERROR scrapy/spiderloader.py:147:41-53: Function declared to return `type[Spider]` but can never return [unexpected-never]
+ ERROR tests/test_downloadermiddleware_httpcache.py:968:73-81: Function declared to return `Response` but can never return [unexpected-never]
+ ERROR tests/test_utils_reactorless.py:17:27-52: Function declared to return `AbstractEventLoop` but can never return [unexpected-never]
docstring-adder (https://github.com/astral-sh/docstring-adder)
+ ERROR add_docstrings.py:1302:6-18: Function declared to return `RuntimeError` but can never return [unexpected-never]
pylox (https://github.com/sco1/pylox)
+ ERROR pylox/parser.py:88:52-66: Function declared to return `ParseException` but can never return [unexpected-never]
boostedblob (https://github.com/hauntsaninja/boostedblob)
+ ERROR boostedblob/delete.py:27:54-62: Function declared to return `BasePath` but can never return [unexpected-never]
+ ERROR boostedblob/listing.py:62:6-29: Function declared to return `AsyncIterator[DirEntry]` but can never return [unexpected-never]
+ ERROR boostedblob/listing.py:148:49-72: Function declared to return `AsyncIterator[DirEntry]` but can never return [unexpected-never]
+ ERROR boostedblob/listing.py:199:49-72: Function declared to return `AsyncIterator[BasePath]` but can never return [unexpected-never]
+ ERROR boostedblob/listing.py:228:50-73: Function declared to return `AsyncIterator[DirEntry]` but can never return [unexpected-never]
+ ERROR boostedblob/listing.py:282:50-73: Function declared to return `AsyncIterator[BasePath]` but can never return [unexpected-never]
+ ERROR boostedblob/listing.py:311:54-77: Function declared to return `AsyncIterator[DirEntry]` but can never return [unexpected-never]
+ ERROR boostedblob/path.py:403:52-56: Function declared to return `Stat` but can never return [unexpected-never]
+ ERROR boostedblob/path.py:458:53-57: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR boostedblob/path.py:552:54-58: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR boostedblob/path.py:576:54-58: Function declared to return `bool` but can never return [unexpected-never]
+ ERROR boostedblob/read.py:41:89-94: Function declared to return `bytes` but can never return [unexpected-never]
+ ERROR boostedblob/read.py:113:59-64: Function declared to return `bytes` but can never return [unexpected-never]
+ ERROR boostedblob/read.py:143:6-28: Function declared to return `Boostable[bytes] | Iterator[bytes]` but can never return [unexpected-never]
+ ERROR boostedblob/share.py:9:55-91: Function declared to return `tuple[str, datetime | None]` but can never return [unexpected-never]
optuna (https://github.com/optuna/optuna)
+ ERROR optuna/testing/objectives.py:5:33-38: Function declared to return `float` but can never return [unexpected-never]
+ ERROR optuna/testing/objectives.py:9:39-44: Function declared to return `float` but can never return [unexpected-never]
+ ERROR tests/artifacts_tests/stubs.py:17:48-56: Function declared to return `BinaryIO` but can never return [unexpected-never]
+ ERROR tests/search_space_tests/test_group_decomposed.py:188:58-63: Function declared to return `float` but can never return [unexpected-never]
+ ERROR tests/search_space_tests/test_intersection.py:54:58-63: Function declared to return `float` but can never return [unexpected-never]
+ ERROR tests/study_tests/test_dataframe.py:126:28-33: Function declared to return `float` but can never return [unexpected-never]
+ ERROR tests/study_tests/test_optimize.py:92:35-40: Function declared to return `float` but can never return [unexpected-never]
django-modern-rest (https://github.com/wemake-services/django-modern-rest)
+ ERROR dmr/controller.py:509:10-22: Function declared to return `HttpResponse` but can never return [unexpected-never]
+ ERROR dmr/controller.py:524:10-22: Function declared to return `HttpResponse` but can never return [unexpected-never]
+ ERROR dmr/serializer.py:243:10-13: Function declared to return `Any` but can never return [unexpected-never]
+ ERROR dmr/streaming/controller.py:96:59-62: Function declared to return `Any` but can never return [unexpected-never]
discord.py (https://github.com/Rapptz/discord.py)
+ ERROR discord/webhook/async_.py:732:41-44: Function declared to return `Any` but can never return [unexpected-never] |
This branch has not been deployed
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.
Summary
Fixes #1132
Added an infinite-loop warning for non-Never functions that cannot return, exempted generators, Never/NoReturn aliases, reachable returns, and ordinary fallthrough paths.
Test Plan
add test