Skip to content

Warn for missing returns with explicit Any return types #715

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 20, 2024

Conversation

KotlinIsland
Copy link
Owner

@KotlinIsland KotlinIsland commented Jul 20, 2024

@KotlinIsland KotlinIsland changed the title Warn for missing returns with explicit Any return types Warn for missing returns with explicit Any return types Jul 20, 2024
Copy link
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

streamlit (https://github.com/streamlit/streamlit)
+ lib/tests/streamlit/external/langchain/capturing_callback_handler.py:196:5: error: Missing return statement  [return]
+ lib/tests/streamlit/external/langchain/capturing_callback_handler.py:196:5: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-return for more info
+ lib/streamlit/external/langchain/streamlit_callback_handler.py:389:5: error: Missing return statement  [return]

jinja (https://github.com/pallets/jinja)
+ src/jinja2/utils.py:131:1: error: Missing return statement  [return]
+ src/jinja2/utils.py:131:1: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-return for more info
+ src/jinja2/visitor.py:44:5: error: Missing return statement  [return]

pydantic (https://github.com/pydantic/pydantic)
+ pydantic/_internal/_docs_extraction.py:24:5: error: Missing return statement  [return]
+ pydantic/_internal/_docs_extraction.py:24:5: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-return for more info
+ pydantic/_internal/_docs_extraction.py:28:5: error: Missing return statement  [return]
- pydantic/_internal/_docs_extraction.py:51:1: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-return for more info

pandas (https://github.com/pandas-dev/pandas)
+ pandas/core/computation/eval.py:174: error: Missing return statement  [return]
+ pandas/core/computation/eval.py:174: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-return for more info

spark (https://github.com/apache/spark)
+ python/pyspark/sql/profiler.py:380:5: error: Missing return statement  [return]
+ python/pyspark/sql/profiler.py:380:5: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-return for more info
+ python/pyspark/sql/types.py:1629:5: error: Missing return statement  [return]
+ python/pyspark/sql/types.py:1633:5: error: Missing return statement  [return]
+ python/pyspark/ml/torch/data.py:40:13: error: Missing return statement  [return]
+ python/pyspark/pandas/frame.py:13452:5: error: Missing return statement  [return]
+ python/pyspark/pandas/resample.py:720:5: error: Missing return statement  [return]
+ python/pyspark/pandas/resample.py:752:5: error: Missing return statement  [return]
+ python/pyspark/sql/connect/client/reattach.py:320:5: error: Missing return statement  [return]

comtypes (https://github.com/enthought/comtypes)
+ comtypes/tools/tlbparser.py:605:5: error: Missing return statement  [return]

discord.py (https://github.com/Rapptz/discord.py)
- version: 2.6.0+dev.37e160873d61870f32938cb68d9e9ca803cbc97c
+ version: 2.6.0+dev.4ec5c4281fabcbd3768a649d557619375fc95451
-   File "/checker.py", line 3031, in visit_block
+   File "/checker.py", line 3035, in visit_block
-   File "/checker.py", line 3094, in visit_assignment_stmt
+   File "/checker.py", line 3098, in visit_assignment_stmt
-   File "/checker.py", line 3324, in check_assignment
+   File "/checker.py", line 3328, in check_assignment

prefect (https://github.com/PrefectHQ/prefect)
+ src/prefect/utilities/collections.py:223:1: error: Missing return statement  [return]
+ src/prefect/utilities/collections.py:223:1: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-return for more info
- src/prefect/utilities/importtools.py:322:5: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-return for more info
+ src/prefect/utilities/visualization.py:52:1: error: Missing return statement  [return]
+ src/prefect/task_engine.py:548:5: error: Missing return statement  [return]
+ src/prefect/_internal/retries.py:42:9: error: Missing return statement  [return]

sphinx (https://github.com/sphinx-doc/sphinx)
+ sphinx/testing/fixtures.py:52:5: error: Missing return statement  [return]
+ sphinx/testing/fixtures.py:52:5: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-return for more info

openlibrary (https://github.com/internetarchive/openlibrary)
- openlibrary/plugins/upstream/addbook.py:88:17: error: Expression type contains "Any" (has type "(Untyped | str, Untyped | str)")  [no-any-expr]
+ openlibrary/plugins/upstream/addbook.py:88:17: error: Expression type contains "Any" (has type "(str | Untyped, str | Untyped)")  [no-any-expr]
- openlibrary/plugins/upstream/addbook.py:88:17: error: Expression type contains "Any" (has type "Untyped | str")  [no-any-expr]
+ openlibrary/plugins/upstream/addbook.py:88:17: error: Expression type contains "Any" (has type "str | Untyped")  [no-any-expr]
- openlibrary/plugins/upstream/addbook.py:89:21: error: Expression type contains "Any" (has type "Untyped | str")  [no-any-expr]
+ openlibrary/plugins/upstream/addbook.py:89:21: error: Expression type contains "Any" (has type "str | Untyped")  [no-any-expr]
- openlibrary/plugins/upstream/addbook.py:89:26: error: Expression type contains "Any" (has type "Untyped | str")  [no-any-expr]
+ openlibrary/plugins/upstream/addbook.py:89:26: error: Expression type contains "Any" (has type "str | Untyped")  [no-any-expr]
- openlibrary/plugins/upstream/addbook.py:90:26: error: Expression type contains "Any" (has type "zip[(Untyped | str, Untyped | str)]")  [no-any-expr]
+ openlibrary/plugins/upstream/addbook.py:90:26: error: Expression type contains "Any" (has type "zip[(str | Untyped, str | Untyped)]")  [no-any-expr]

scipy (https://github.com/scipy/scipy)
- scipy/stats/_axis_nan_policy.py:220:34: error: Expression type contains "Any" (has type "finfo[floating[Any | _64Bit]] | iinfo[Any | floating[_64Bit]]")  [no-any-expr]
+ scipy/stats/_axis_nan_policy.py:220:34: error: Expression type contains "Any" (has type "finfo[floating[_64Bit | Any]] | iinfo[Any | floating[_64Bit]]")  [no-any-expr]
- scipy/stats/_axis_nan_policy.py:220:34: error: Expression type contains "Any" (has type "floating[Any | _64Bit] | int")  [no-any-expr]
+ scipy/stats/_axis_nan_policy.py:220:34: error: Expression type contains "Any" (has type "floating[_64Bit | Any] | int")  [no-any-expr]
- scipy/stats/_axis_nan_policy.py:220:51: error: Expression type contains "Any" (has type "finfo[floating[Any | _64Bit]] | iinfo[Any | floating[_64Bit]]")  [no-any-expr]
+ scipy/stats/_axis_nan_policy.py:220:51: error: Expression type contains "Any" (has type "finfo[floating[_64Bit | Any]] | iinfo[Any | floating[_64Bit]]")  [no-any-expr]
- scipy/stats/_axis_nan_policy.py:220:51: error: Expression type contains "Any" (has type "floating[Any | _64Bit] | int")  [no-any-expr]
+ scipy/stats/_axis_nan_policy.py:220:51: error: Expression type contains "Any" (has type "floating[_64Bit | Any] | int")  [no-any-expr]
- scipy/stats/_axis_nan_policy.py:223:16: error: Expression type contains "Any" (has type "floating[Any | _64Bit] | int")  [no-any-expr]
+ scipy/stats/_axis_nan_policy.py:223:16: error: Expression type contains "Any" (has type "floating[_64Bit | Any] | int")  [no-any-expr]
- scipy/stats/_axis_nan_policy.py:225:11: error: Expression type contains "Any" (has type "floating[Any | _64Bit] | int")  [no-any-expr]
+ scipy/stats/_axis_nan_policy.py:225:11: error: Expression type contains "Any" (has type "floating[_64Bit | Any] | int")  [no-any-expr]
- scipy/stats/_axis_nan_policy.py:225:11: error: Expression type contains "Any" (has type "floating[Any | _64Bit]")  [no-any-expr]
+ scipy/stats/_axis_nan_policy.py:225:11: error: Expression type contains "Any" (has type "floating[_64Bit | Any]")  [no-any-expr]
- scipy/stats/_axis_nan_policy.py:225:22: error: Expression type contains "Any" (has type "floating[Any | _64Bit] | int")  [no-any-expr]
+ scipy/stats/_axis_nan_policy.py:225:22: error: Expression type contains "Any" (has type "floating[_64Bit | Any] | int")  [no-any-expr]
- scipy/stats/_axis_nan_policy.py:227:33: error: Expression type contains "Any" (has type "floating[Any | _64Bit] | int")  [no-any-expr]
+ scipy/stats/_axis_nan_policy.py:227:33: error: Expression type contains "Any" (has type "floating[_64Bit | Any] | int")  [no-any-expr]
- scipy/stats/_axis_nan_policy.py:228:38: error: Expression type contains "Any" (has type "floating[Any | _64Bit] | int")  [no-any-expr]
+ scipy/stats/_axis_nan_policy.py:228:38: error: Expression type contains "Any" (has type "floating[_64Bit | Any] | int")  [no-any-expr]
- scipy/stats/_axis_nan_policy.py:246:28: error: Expression type contains "Any" (has type "floating[Any | _64Bit] | int")  [no-any-expr]
+ scipy/stats/_axis_nan_policy.py:246:28: error: Expression type contains "Any" (has type "floating[_64Bit | Any] | int")  [no-any-expr]
- scipy/stats/_axis_nan_policy.py:249:12: error: Expression type contains "Any" (has type "(list[Untyped], floating[Any | _64Bit] | int)")  [no-any-expr]
+ scipy/stats/_axis_nan_policy.py:249:12: error: Expression type contains "Any" (has type "(list[Untyped], floating[_64Bit | Any] | int)")  [no-any-expr]
- scipy/stats/_axis_nan_policy.py:249:25: error: Expression type contains "Any" (has type "floating[Any | _64Bit] | int")  [no-any-expr]
+ scipy/stats/_axis_nan_policy.py:249:25: error: Expression type contains "Any" (has type "floating[_64Bit | Any] | int")  [no-any-expr]
- scipy/linalg/tests/test_procrustes.py:71:9: error: Expression type contains "Any" (has type "(Any | None | ndarray[Any, dtype[floating[_64Bit]]], Any | None | ndarray[Any, dtype[floating[_64Bit]]])")  [no-any-expr]
+ scipy/linalg/tests/test_procrustes.py:71:9: error: Expression type contains "Any" (has type "(ndarray[Any, dtype[floating[_64Bit]]] | Any | None, ndarray[Any, dtype[floating[_64Bit]]] | Any | None)")  [no-any-expr]
- scipy/linalg/tests/test_procrustes.py:71:9: error: Expression type contains "Any" (has type "Any | None | ndarray[Any, dtype[floating[_64Bit]]]")  [no-any-expr]
+ scipy/linalg/tests/test_procrustes.py:71:9: error: Expression type contains "Any" (has type "ndarray[Any, dtype[floating[_64Bit]]] | Any | None")  [no-any-expr]
- scipy/linalg/tests/test_procrustes.py:71:21: error: Expression type contains "Any" (has type "product[(Any | None | ndarray[Any, dtype[floating[_64Bit]]], Any | None | ndarray[Any, dtype[floating[_64Bit]]])]")  [no-any-expr]
+ scipy/linalg/tests/test_procrustes.py:71:21: error: Expression type contains "Any" (has type "product[(ndarray[Any, dtype[floating[_64Bit]]] | Any | None, ndarray[Any, dtype[floating[_64Bit]]] | Any | None)]")  [no-any-expr]
- scipy/linalg/tests/test_procrustes.py:72:42: error: Expression type contains "Any" (has type "Any | None | ndarray[Any, dtype[floating[_64Bit]]]")  [no-any-expr]
+ scipy/linalg/tests/test_procrustes.py:72:42: error: Expression type contains "Any" (has type "ndarray[Any, dtype[floating[_64Bit]]] | Any | None")  [no-any-expr]
- scipy/linalg/tests/test_procrustes.py:72:45: error: Expression type contains "Any" (has type "Any | None | ndarray[Any, dtype[floating[_64Bit]]]")  [no-any-expr]
+ scipy/linalg/tests/test_procrustes.py:72:45: error: Expression type contains "Any" (has type "ndarray[Any, dtype[floating[_64Bit]]] | Any | None")  [no-any-expr]
- scipy/fft/tests/test_backend.py:56:49: error: Expression type contains "Any" (has type "zip[(None | partial[Any (from error)], def (a: _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes], n: None | int=..., axis: int=..., norm: None | 'backward' | 'ortho' | 'forward'=..., out: None | ndarray[Any, dtype[complexfloating[_64Bit, _64Bit]]]=...) -> ndarray[Any, dtype[complexfloating[_64Bit, _64Bit]]] | def (a: _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes], s: None | Sequence[int]=..., axes: None | Sequence[int]=..., norm: None | 'backward' | 'ortho' | 'forward'=..., out: None | ndarray[Any, dtype[complexfloating[_64Bit, _64Bit]]]=...) -> ndarray[Any, dtype[complexfloating[_64Bit, _64Bit]]] | partial[Any (from error)] | def (a: _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes], n: None | int=..., axis: int=..., norm: None | 'backward' | 'ortho' | 'forward'=..., out: None | ndarray[Any, dtype[floating[_64Bit]]]=...) -> ndarray[Any, dtype[floating[_64Bit]]] | partial[None] | def (a: _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes], s: None | Sequence[int]=..., axes: None | Sequence[int]=..., norm: None | 'backward' | 'ortho' | 'forward'=..., out: None | ndarray[Any, dtype[floating[_64Bit]]]=...) -> ndarray[Any, dtype[floating[_64Bit]]] | def (x: Untyped, s: Untyped=..., axes: Untyped=..., norm: Untyped=..., overwrite_x: bool=..., workers: Untyped=..., *, plan: Untyped = ...) -> None | def (a: _SupportsArray[dtype[numpy.bool | number[Any]]] | _NestedSequence[_SupportsArray[dtype[numpy.bool | number[Any]]]] | bool | int | float | complex | _NestedSequence[bool | int | float | complex], n: None | int=..., axis: int=..., norm: None | 'backward' | 'ortho' | 'forward'=..., out: None | ndarray[Any, dtype[floating[_64Bit]]]=...) -> ndarray[Any, dtype[floating[_64Bit]]], _MockFunction)]")  [no-any-expr]
+ scipy/fft/tests/test_backend.py:56:49: error: Expression type contains "Any" (has type "zip[(None | partial[Any (from error)], def (a: _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes], s: None | Sequence[int]=..., axes: None | Sequence[int]=..., norm: None | 'backward' | 'ortho' | 'forward'=..., out: None | ndarray[Any, dtype[complexfloating[_64Bit, _64Bit]]]=...) -> ndarray[Any, dtype[complexfloating[_64Bit, _64Bit]]] | def (a: _SupportsArray[dtype[numpy.bool | number[Any]]] | _NestedSequence[_SupportsArray[dtype[numpy.bool | number[Any]]]] | bool | int | float | complex | _NestedSequence[bool | int | float | complex], n: None | int=..., axis: int=..., norm: None | 'backward' | 'ortho' | 'forward'=..., out: None | ndarray[Any, dtype[floating[_64Bit]]]=...) -> ndarray[Any, dtype[floating[_64Bit]]] | def (a: _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes], n: None | int=..., axis: int=..., norm: None | 'backward' | 'ortho' | 'forward'=..., out: None | ndarray[Any, dtype[complexfloating[_64Bit, _64Bit]]]=...) -> ndarray[Any, dtype[complexfloating[_64Bit, _64Bit]]] | def (x: Untyped, s: Untyped=..., axes: Untyped=..., norm: Untyped=..., overwrite_x: bool=..., workers: Untyped=..., *, plan: Untyped = ...) -> None | def (a: _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes], s: None | Sequence[int]=..., axes: None | Sequence[int]=..., norm: None | 'backward' | 'ortho' | 'forward'=..., out: None | ndarray[Any, dtype[floating[_64Bit]]]=...) -> ndarray[Any, dtype[floating[_64Bit]]] | def (a: _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes], n: None | int=..., axis: int=..., norm: None | 'backward' | 'ortho' | 'forward'=..., out: None | ndarray[Any, dtype[floating[_64Bit]]]=...) -> ndarray[Any, dtype[floating[_64Bit]]] | partial[Any (from error)] | partial[None], _MockFunction)]")  [no-any-expr]
- scipy/optimize/tests/test_optimize.py:999:24: error: Incompatible types in assignment (expression has type "BFGS | Any (from error)", variable has type "type[BFGS] | str")  [assignment]
+ scipy/optimize/tests/test_optimize.py:999:24: error: Incompatible types in assignment (expression has type "Any (from error) | BFGS", variable has type "str | type[BFGS]")  [assignment]
- scipy/signal/tests/test_short_time_fft.py:416:5: error: Expression type contains "Any" (has type "tuple[Any | None | str | int, ...]")  [no-any-expr]
+ scipy/signal/tests/test_short_time_fft.py:416:5: error: Expression type contains "Any" (has type "tuple[Any | None | int | str, ...]")  [no-any-expr]
- scipy/signal/tests/test_short_time_fft.py:416:5: error: Expression type contains "Any" (has type "Any | None | str | int")  [no-any-expr]
+ scipy/signal/tests/test_short_time_fft.py:416:5: error: Expression type contains "Any" (has type "Any | None | int | str")  [no-any-expr]
- scipy/signal/tests/test_short_time_fft.py:416:46: error: Expression type contains "Any" (has type "product[tuple[Any | None | str | int, ...]]")  [no-any-expr]
+ scipy/signal/tests/test_short_time_fft.py:416:46: error: Expression type contains "Any" (has type "product[tuple[Any | None | int | str, ...]]")  [no-any-expr]
- scipy/signal/tests/test_short_time_fft.py:417:12: error: Expression type contains "Any" (has type "Any | None | str | int")  [no-any-expr]
+ scipy/signal/tests/test_short_time_fft.py:417:12: error: Expression type contains "Any" (has type "Any | None | int | str")  [no-any-expr]
- scipy/signal/tests/test_short_time_fft.py:417:38: error: Expression type contains "Any" (has type "Any | None | str | int")  [no-any-expr]
+ scipy/signal/tests/test_short_time_fft.py:417:38: error: Expression type contains "Any" (has type "Any | None | int | str")  [no-any-expr]
- scipy/signal/tests/test_short_time_fft.py:419:51: error: Expression type contains "Any" (has type "Any | None | str | int")  [no-any-expr]
+ scipy/signal/tests/test_short_time_fft.py:419:51: error: Expression type contains "Any" (has type "Any | None | int | str")  [no-any-expr]
- scipy/signal/tests/test_short_time_fft.py:419:51: error: Argument "fft_mode" to "ShortTimeFFT" has incompatible type "Any | None | str | int"; expected "'twosided' | 'centered' | 'onesided' | 'onesided2X'"  [arg-type]
+ scipy/signal/tests/test_short_time_fft.py:419:51: error: Argument "fft_mode" to "ShortTimeFFT" has incompatible type "Any | None | int | str"; expected "'twosided' | 'centered' | 'onesided' | 'onesided2X'"  [arg-type]
- scipy/signal/tests/test_short_time_fft.py:419:63: error: Expression type contains "Any" (has type "Any | None | str | int")  [no-any-expr]
+ scipy/signal/tests/test_short_time_fft.py:419:63: error: Expression type contains "Any" (has type "Any | None | int | str")  [no-any-expr]
- scipy/signal/tests/test_short_time_fft.py:419:63: error: Argument "mfft" to "ShortTimeFFT" has incompatible type "Any | None | str | int"; expected "int | None"  [arg-type]
+ scipy/signal/tests/test_short_time_fft.py:419:63: error: Argument "mfft" to "ShortTimeFFT" has incompatible type "Any | None | int | str"; expected "int | None"  [arg-type]
- scipy/signal/tests/test_short_time_fft.py:420:37: error: Expression type contains "Any" (has type "Any | None | str | int")  [no-any-expr]
+ scipy/signal/tests/test_short_time_fft.py:420:37: error: Expression type contains "Any" (has type "Any | None | int | str")  [no-any-expr]
- scipy/signal/tests/test_short_time_fft.py:420:37: error: Argument "scale_to" to "ShortTimeFFT" has incompatible type "Any | None | str | int"; expected "'magnitude' | 'psd' | None"  [arg-type]
+ scipy/signal/tests/test_short_time_fft.py:420:37: error: Argument "scale_to" to "ShortTimeFFT" has incompatible type "Any | None | int | str"; expected "'magnitude' | 'psd' | None"  [arg-type]
- scipy/signal/tests/test_short_time_fft.py:420:58: error: Expression type contains "Any" (has type "Any | None | str | int")  [no-any-expr]
+ scipy/signal/tests/test_short_time_fft.py:420:58: error: Expression type contains "Any" (has type "Any | None | int | str")  [no-any-expr]
- scipy/signal/tests/test_short_time_fft.py:420:58: error: Argument "phase_shift" to "ShortTimeFFT" has incompatible type "Any | None | str | int"; expected "int | None"  [arg-type]
+ scipy/signal/tests/test_short_time_fft.py:420:58: error: Argument "phase_shift" to "ShortTimeFFT" has incompatible type "Any | None | int | str"; expected "int | None"  [arg-type]
- scipy/signal/tests/test_short_time_fft.py:424:25: error: Expression type contains "Any" (has type "Any | None | str | int")  [no-any-expr]
+ scipy/signal/tests/test_short_time_fft.py:424:25: error: Expression type contains "Any" (has type "Any | None | int | str")  [no-any-expr]

starlette (https://github.com/encode/starlette)
+ tests/middleware/test_errors.py:88:5: error: Missing return statement  [return]
+ tests/middleware/test_errors.py:88:5: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-return for more info

scrapy (https://github.com/scrapy/scrapy)
+ scrapy/utils/trackref.py:58:1: error: Missing return statement  [return]
+ scrapy/utils/trackref.py:58:1: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-return for more info
+ scrapy/utils/console.py:96:1: error: Missing return statement  [return]

urllib3 (https://github.com/urllib3/urllib3)
+ test/test_wait.py:111:5: error: Missing return statement  [return]
+ test/test_wait.py:111:5: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-return for more info
+ test/test_wait.py:142:5: error: Missing return statement  [return]
+ test/test_wait.py:176:5: error: Missing return statement  [return]
+ test/contrib/emscripten/conftest.py:113:5: error: Missing return statement  [return]

mongo-python-driver (https://github.com/mongodb/mongo-python-driver)
+ gridfs/grid_file_shared.py:102:5: error: Missing return statement  [return]
+ gridfs/grid_file_shared.py:102:5: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-return for more info

CPython (peg_generator) (https://github.com/python/cpython)
+ Tools/peg_generator/pegen/grammar.py:26:5: error: Missing return statement  [return]
+ Tools/peg_generator/pegen/grammar.py:26:5: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-return for more info
+ Tools/peg_generator/pegen/testutil.py:85:1: error: Missing return statement  [return]

aiohttp (https://github.com/aio-libs/aiohttp)
+ aiohttp/test_utils.py:618:5: error: Missing return statement  [return]
+ aiohttp/test_utils.py:618:5: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-return for more info

materialize (https://github.com/MaterializeInc/materialize)
+ misc/python/materialize/buildkite_insights/buildkite_api/generic_api.py:77:1: error: Missing return statement  [return]
+ misc/python/materialize/buildkite_insights/buildkite_api/generic_api.py:77:1: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-return for more info
+ misc/python/materialize/cli/mzcompose.py:547:5: error: Missing return statement  [return]
+ misc/python/materialize/cli/mzcompose.py:734:5: error: Missing return statement  [return]

vision (https://github.com/pytorch/vision)
+ torchvision/transforms/v2/_misc.py:102:5: error: Missing return statement  [return]
+ torchvision/transforms/v2/_misc.py:102:5: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-return for more info
+ torchvision/transforms/v2/_misc.py:160:5: error: Missing return statement  [return]

porcupine (https://github.com/Akuli/porcupine)
+ porcupine/_state.py:41:1: error: Missing return statement  [return]
+ porcupine/_state.py:41:1: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-return for more info

mkdocs (https://github.com/mkdocs/mkdocs)
- mkdocs/tests/config/config_tests.py:215:9: error: Expression type contains "Any" (has type "(dict[str, str] | dict[str, dict[str, str]] | dict[str, dict[str, None | Untyped]] | dict[str, dict[str, str | Untyped]] | dict[str, dict[str, str | list[str] | bool]], dict[str, list[Untyped | str] | list[str] | dict[str, None | Locale]] | dict[str, list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]] | dict[str, list[Untyped | str] | list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]] | dict[str, list[str] | dict[str, str | bool | Locale | dict[str, None] | list[Any (from error)] | int | dict[str, int]]])")  [no-any-expr]
+ mkdocs/tests/config/config_tests.py:215:9: error: Expression type contains "Any" (has type "(dict[str, str] | dict[str, dict[str, str]] | dict[str, dict[str, None | Untyped]] | dict[str, dict[str, str | Untyped]] | dict[str, dict[str, str | list[str] | bool]], dict[str, list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]] | dict[str, list[str] | dict[str, str | bool | Locale | dict[str, None] | list[Any (from error)] | int | dict[str, int]]] | dict[str, list[Untyped | str] | list[str] | dict[str, None | Locale]] | dict[str, list[Untyped | str] | list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]])")  [no-any-expr]
- mkdocs/tests/config/config_tests.py:215:9: error: Expression type contains "Any" (has type "dict[str, list[Untyped | str] | list[str] | dict[str, None | Locale]] | dict[str, list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]] | dict[str, list[Untyped | str] | list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]] | dict[str, list[str] | dict[str, str | bool | Locale | dict[str, None] | list[Any (from error)] | int | dict[str, int]]]")  [no-any-expr]
- mkdocs/tests/config/config_tests.py:215:40: error: Expression type contains "Any" (has type "zip[(dict[str, str] | dict[str, dict[str, str]] | dict[str, dict[str, None | Untyped]] | dict[str, dict[str, str | Untyped]] | dict[str, dict[str, str | list[str] | bool]], dict[str, list[Untyped | str] | list[str] | dict[str, None | Locale]] | dict[str, list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]] | dict[str, list[Untyped | str] | list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]] | dict[str, list[str] | dict[str, str | bool | Locale | dict[str, None] | list[Any (from error)] | int | dict[str, int]]])]")  [no-any-expr]
+ mkdocs/tests/config/config_tests.py:215:9: error: Expression type contains "Any" (has type "dict[str, list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]] | dict[str, list[str] | dict[str, str | bool | Locale | dict[str, None] | list[Any (from error)] | int | dict[str, int]]] | dict[str, list[Untyped | str] | list[str] | dict[str, None | Locale]] | dict[str, list[Untyped | str] | list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]]")  [no-any-expr]
+ mkdocs/tests/config/config_tests.py:215:40: error: Expression type contains "Any" (has type "zip[(dict[str, str] | dict[str, dict[str, str]] | dict[str, dict[str, None | Untyped]] | dict[str, dict[str, str | Untyped]] | dict[str, dict[str, str | list[str] | bool]], dict[str, list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]] | dict[str, list[str] | dict[str, str | bool | Locale | dict[str, None] | list[Any (from error)] | int | dict[str, int]]] | dict[str, list[Untyped | str] | list[str] | dict[str, None | Locale]] | dict[str, list[Untyped | str] | list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]])]")  [no-any-expr]
- mkdocs/tests/config/config_tests.py:222:54: error: Expression type contains "Any" (has type "dict[str, list[Untyped | str] | list[str] | dict[str, None | Locale]] | dict[str, list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]] | dict[str, list[Untyped | str] | list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]] | dict[str, list[str] | dict[str, str | bool | Locale | dict[str, None] | list[Any (from error)] | int | dict[str, int]]]")  [no-any-expr]
+ mkdocs/tests/config/config_tests.py:222:54: error: Expression type contains "Any" (has type "dict[str, list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]] | dict[str, list[str] | dict[str, str | bool | Locale | dict[str, None] | list[Any (from error)] | int | dict[str, int]]] | dict[str, list[Untyped | str] | list[str] | dict[str, None | Locale]] | dict[str, list[Untyped | str] | list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]]")  [no-any-expr]
- mkdocs/tests/config/config_tests.py:222:54: error: Expression type contains "Any" (has type "list[Untyped | str] | list[str] | dict[str, None | Locale] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None] | dict[str, str | bool | Locale | dict[str, None] | list[Any (from error)] | int | dict[str, int]]")  [no-any-expr]
+ mkdocs/tests/config/config_tests.py:222:54: error: Expression type contains "Any" (has type "list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None] | dict[str, str | bool | Locale | dict[str, None] | list[Any (from error)] | int | dict[str, int]] | list[Untyped | str] | dict[str, None | Locale]")  [no-any-expr]
- mkdocs/tests/config/config_tests.py:223:70: error: Expression type contains "Any" (has type "dict[str, list[Untyped | str] | list[str] | dict[str, None | Locale]] | dict[str, list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]] | dict[str, list[Untyped | str] | list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]] | dict[str, list[str] | dict[str, str | bool | Locale | dict[str, None] | list[Any (from error)] | int | dict[str, int]]]")  [no-any-expr]
+ mkdocs/tests/config/config_tests.py:223:70: error: Expression type contains "Any" (has type "dict[str, list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]] | dict[str, list[str] | dict[str, str | bool | Locale | dict[str, None] | list[Any (from error)] | int | dict[str, int]]] | dict[str, list[Untyped | str] | list[str] | dict[str, None | Locale]] | dict[str, list[Untyped | str] | list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]]")  [no-any-expr]
- mkdocs/tests/config/config_tests.py:223:70: error: Expression type contains "Any" (has type "list[Untyped | str] | list[str] | dict[str, None | Locale] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None] | dict[str, str | bool | Locale | dict[str, None] | list[Any (from error)] | int | dict[str, int]]")  [no-any-expr]
+ mkdocs/tests/config/config_tests.py:223:70: error: Expression type contains "Any" (has type "list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None] | dict[str, str | bool | Locale | dict[str, None] | list[Any (from error)] | int | dict[str, int]] | list[Untyped | str] | dict[str, None | Locale]")  [no-any-expr]
- mkdocs/tests/config/config_tests.py:224:55: error: Expression type contains "Any" (has type "dict[str, list[Untyped | str] | list[str] | dict[str, None | Locale]] | dict[str, list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]] | dict[str, list[Untyped | str] | list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]] | dict[str, list[str] | dict[str, str | bool | Locale | dict[str, None] | list[Any (from error)] | int | dict[str, int]]]")  [no-any-expr]
+ mkdocs/tests/config/config_tests.py:224:55: error: Expression type contains "Any" (has type "dict[str, list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]] | dict[str, list[str] | dict[str, str | bool | Locale | dict[str, None] | list[Any (from error)] | int | dict[str, int]]] | dict[str, list[Untyped | str] | list[str] | dict[str, None | Locale]] | dict[str, list[Untyped | str] | list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]]")  [no-any-expr]
- mkdocs/tests/config/config_tests.py:224:55: error: Expression type contains "Any" (has type "list[Untyped | str] | list[str] | dict[str, None | Locale] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None] | dict[str, str | bool | Locale | dict[str, None] | list[Any (from error)] | int | dict[str, int]]")  [no-any-expr]
+ mkdocs/tests/config/config_tests.py:224:55: error: Expression type contains "Any" (has type "list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None] | dict[str, str | bool | Locale | dict[str, None] | list[Any (from error)] | int | dict[str, int]] | list[Untyped | str] | dict[str, None | Locale]")  [no-any-expr]

pylox (https://github.com/sco1/pylox)
+ pylox/callable.py:41:5: error: Missing return statement  [return]

bandersnatch (https://github.com/pypa/bandersnatch)
+ src/bandersnatch/master.py:193:5: error: Missing return statement  [return]
+ src/bandersnatch/master.py:193:5: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-return for more info

graphql-core (https://github.com/graphql-python/graphql-core)
+ src/graphql/execution/execute.py:1605:5: error: Missing return statement  [return]
+ src/graphql/execution/execute.py:1605:5: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-return for more info

pandera (https://github.com/pandera-dev/pandera)
+ pandera/decorators.py:627:5: error: Missing return statement  [return]
+ pandera/decorators.py:627:5: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-return for more info

ibis (https://github.com/ibis-project/ibis)
- ibis/expr/api.py:489:37: error: Expression type contains "Any" (has type "zip[(Any (from unimported type), str | Any)]")  [no-any-expr]
+ ibis/expr/api.py:489:37: error: Expression type contains "Any" (has type "zip[(Any (from unimported type), Any | str)]")  [no-any-expr]
- ibis/backends/tests/test_numeric.py:1041:17: error: Expression type contains "Any" (has type "list[int | Any]")  [no-any-expr]
+ ibis/backends/tests/test_numeric.py:1041:17: error: Expression type contains "Any" (has type "list[Any | int]")  [no-any-expr]
- ibis/backends/tests/test_numeric.py:1041:22: error: Expression type contains "Any" (has type "map[int | Any]")  [no-any-expr]
+ ibis/backends/tests/test_numeric.py:1041:22: error: Expression type contains "Any" (has type "map[Any | int]")  [no-any-expr]
- ibis/backends/tests/test_numeric.py:1059:17: error: Expression type contains "Any" (has type "list[int | Any]")  [no-any-expr]
+ ibis/backends/tests/test_numeric.py:1059:17: error: Expression type contains "Any" (has type "list[Any | int]")  [no-any-expr]
- ibis/backends/tests/test_numeric.py:1059:22: error: Expression type contains "Any" (has type "map[int | Any]")  [no-any-expr]
+ ibis/backends/tests/test_numeric.py:1059:22: error: Expression type contains "Any" (has type "map[Any | int]")  [no-any-expr]
+ ibis/backends/pyspark/__init__.py:406:5: error: Missing return statement  [return]
+ ibis/backends/pyspark/__init__.py:445:5: error: Missing return statement  [return]

ignite (https://github.com/pytorch/ignite)
+ ignite/engine/engine.py:252:9: error: Missing return statement  [return]
+ ignite/engine/engine.py:252:9: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-return for more info
+ ignite/distributed/auto.py:354:9: error: Missing return statement  [return]
+ ignite/handlers/neptune_logger.py:164:5: error: Missing return statement  [return]

arviz (https://github.com/arviz-devs/arviz)
- arviz/plots/backends/matplotlib/energyplot.py:62:14: error: Expression type contains "Any" (has type "zip[(Any (unannotated), Any (unannotated), str | str, Any (unannotated) | ndarray[Any, dtype[Any]])]")  [no-any-expr]
+ arviz/plots/backends/matplotlib/energyplot.py:62:14: error: Expression type contains "Any" (has type "zip[(Any (unannotated), Any (unannotated), str | str, ndarray[Any, dtype[Any]] | Any (unannotated))]")  [no-any-expr]
- arviz/plots/backends/matplotlib/energyplot.py:70:9: error: Expression type contains "Any" (has type "(Any (unannotated), Any (unannotated), str, Any (unannotated) | ndarray[Any, dtype[Any]])")  [no-any-expr]
+ arviz/plots/backends/matplotlib/energyplot.py:70:9: error: Expression type contains "Any" (has type "(Any (unannotated), Any (unannotated), str, ndarray[Any, dtype[Any]] | Any (unannotated))")  [no-any-expr]
- arviz/plots/backends/matplotlib/energyplot.py:70:9: error: Expression type contains "Any" (has type "Any (unannotated) | ndarray[Any, dtype[Any]]")  [no-any-expr]
+ arviz/plots/backends/matplotlib/energyplot.py:70:9: error: Expression type contains "Any" (has type "ndarray[Any, dtype[Any]] | Any (unannotated)")  [no-any-expr]
- arviz/plots/backends/matplotlib/energyplot.py:70:43: error: Expression type contains "Any" (has type "zip[(Any (unannotated), Any (unannotated), str, Any (unannotated) | ndarray[Any, dtype[Any]])]")  [no-any-expr]
+ arviz/plots/backends/matplotlib/energyplot.py:70:43: error: Expression type contains "Any" (has type "zip[(Any (unannotated), Any (unannotated), str, ndarray[Any, dtype[Any]] | Any (unannotated))]")  [no-any-expr]
- arviz/plots/backends/matplotlib/energyplot.py:77:17: error: Expression type contains "Any" (has type "Any (unannotated) | ndarray[Any, dtype[Any]]")  [no-any-expr]
+ arviz/plots/backends/matplotlib/energyplot.py:77:17: error: Expression type contains "Any" (has type "ndarray[Any, dtype[Any]] | Any (unannotated)")  [no-any-expr]
- arviz/plots/backends/matplotlib/energyplot.py:87:9: error: Expression type contains "Any" (has type "(Any (unannotated), Any (unannotated), str, Any (unannotated) | ndarray[Any, dtype[Any]])")  [no-any-expr]
+ arviz/plots/backends/matplotlib/energyplot.py:87:9: error: Expression type contains "Any" (has type "(Any (unannotated), Any (unannotated), str, ndarray[Any, dtype[Any]] | Any (unannotated))")  [no-any-expr]
- arviz/plots/backends/matplotlib/energyplot.py:87:43: error: Expression type contains "Any" (has type "zip[(Any (unannotated), Any (unannotated), str, Any (unannotated) | ndarray[Any, dtype[Any]])]")  [no-any-expr]
+ arviz/plots/backends/matplotlib/energyplot.py:87:43: error: Expression type contains "Any" (has type "zip[(Any (unannotated), Any (unannotated), str, ndarray[Any, dtype[Any]] | Any (unannotated))]")  [no-any-expr]
- arviz/plots/backends/matplotlib/energyplot.py:89:17: error: Expression type contains "Any" (has type "Any (unannotated) | ndarray[Any, dtype[Any]]")  [no-any-expr]
+ arviz/plots/backends/matplotlib/energyplot.py:89:17: error: Expression type contains "Any" (has type "ndarray[Any, dtype[Any]] | Any (unannotated)")  [no-any-expr]
- arviz/plots/backends/bokeh/energyplot.py:72:14: error: Expression type contains "Any" (has type "zip[(Any (unannotated), Any (unannotated), str | str, Any (unannotated) | ndarray[Any, dtype[Any]])]")  [no-any-expr]
+ arviz/plots/backends/bokeh/energyplot.py:72:14: error: Expression type contains "Any" (has type "zip[(Any (unannotated), Any (unannotated), str | str, ndarray[Any, dtype[Any]] | Any (unannotated))]")  [no-any-expr]
- arviz/plots/backends/bokeh/energyplot.py:82:9: error: Expression type contains "Any" (has type "(Any (unannotated), Any (unannotated), str, Any (unannotated) | ndarray[Any, dtype[Any]])")  [no-any-expr]
+ arviz/plots/backends/bokeh/energyplot.py:82:9: error: Expression type contains "Any" (has type "(Any (unannotated), Any (unannotated), str, ndarray[Any, dtype[Any]] | Any (unannotated))")  [no-any-expr]
- arviz/plots/backends/bokeh/energyplot.py:82:9: error: Expression type contains "Any" (has type "Any (unannotated) | ndarray[Any, dtype[Any]]")  [no-any-expr]
+ arviz/plots/backends/bokeh/energyplot.py:82:9: error: Expression type contains "Any" (has type "ndarray[Any, dtype[Any]] | Any (unannotated)")  [no-any-expr]
- arviz/plots/backends/bokeh/energyplot.py:82:43: error: Expression type contains "Any" (has type "zip[(Any (unannotated), Any (unannotated), str, Any (unannotated) | ndarray[Any, dtype[Any]])]")  [no-any-expr]
+ arviz/plots/backends/bokeh/energyplot.py:82:43: error: Expression type contains "Any" (has type "zip[(Any (unannotated), Any (unannotated), str, ndarray[Any, dtype[Any]] | Any (unannotated))]")  [no-any-expr]
- arviz/plots/backends/bokeh/energyplot.py:88:17: error: Expression type contains "Any" (has type "Any (unannotated) | ndarray[Any, dtype[Any]]")  [no-any-expr]
+ arviz/plots/backends/bokeh/energyplot.py:88:17: error: Expression type contains "Any" (has type "ndarray[Any, dtype[Any]] | Any (unannotated)")  [no-any-expr]
- arviz/plots/backends/bokeh/energyplot.py:111:9: error: Expression type contains "Any" (has type "(Any (unannotated), Any (unannotated), str, Any (unannotated) | ndarray[Any, dtype[Any]])")  [no-any-expr]
+ arviz/plots/backends/bokeh/energyplot.py:111:9: error: Expression type contains "Any" (has type "(Any (unannotated), Any (unannotated), str, ndarray[Any, dtype[Any]] | Any (unannotated))")  [no-any-expr]
- arviz/plots/backends/bokeh/energyplot.py:111:43: error: Expression type contains "Any" (has type "zip[(Any (unannotated), Any (unannotated), str, Any (unannotated) | ndarray[Any, dtype[Any]])]")  [no-any-expr]
+ arviz/plots/backends/bokeh/energyplot.py:111:43: error: Expression type contains "Any" (has type "zip[(Any (unannotated), Any (unannotated), str, ndarray[Any, dtype[Any]] | Any (unannotated))]")  [no-any-expr]
- arviz/plots/backends/bokeh/energyplot.py:117:17: error: Expression type contains "Any" (has type "Any (unannotated) | ndarray[Any, dtype[Any]]")  [no-any-expr]
+ arviz/plots/backends/bokeh/energyplot.py:117:17: error: Expression type contains "Any" (has type "ndarray[Any, dtype[Any]] | Any (unannotated)")  [no-any-expr]

pyodide (https://github.com/pyodide/pyodide)
+ src/py/_pyodide/_base.py:367:5: error: Missing return statement  [return]
+ src/py/_pyodide/_base.py:367:5: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-return for more info

scikit-learn (https://github.com/scikit-learn/scikit-learn)
- sklearn/utils/tests/test_multiclass.py:320:22: error: Expression type contains "Any" (has type "product[(list[list[Any (from error)]] | ndarray[Any, dtype[Any]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[int] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | _NotAnArray | list[str] | Any (from error) | list[float] | list[int | float] | list[list[int]] | list[list[str]], list[list[Any (from error)]] | ndarray[Any, dtype[Any]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[list[int]] | list[list[str]] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | Any (from error) | _NotAnArray | list[int] | list[str] | list[float] | list[int | float])]")  [no-any-expr]
- sklearn/utils/tests/test_multiclass.py:324:5: error: Expression type contains "Any" (has type "(list[list[Any (from error)]] | ndarray[Any, dtype[Any]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[int] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | _NotAnArray | list[str] | Any (from error) | list[float] | list[int | float] | list[list[int]] | list[list[str]], list[list[Any (from error)]] | ndarray[Any, dtype[Any]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[list[int]] | list[list[str]] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | Any (from error) | _NotAnArray | list[int] | list[str] | list[float] | list[int | float])")  [no-any-expr]
+ sklearn/utils/tests/test_multiclass.py:320:22: error: Expression type contains "Any" (has type "product[(list[float] | list[int | float] | ndarray[Any, dtype[Any]] | ndarray[Any, dtype[floating[_32Bit]]] | list[int] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | _NotAnArray | list[str] | list[list[int]] | list[list[str]] | Any (from error) | list[list[Any (from error)]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]], list[list[Any (from error)]] | ndarray[Any, dtype[Any]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[int] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | _NotAnArray | list[str] | Any (from error) | list[list[int]] | list[float] | list[int | float] | list[list[str]])]")  [no-any-expr]
+ sklearn/utils/tests/test_multiclass.py:324:5: error: Expression type contains "Any" (has type "(list[float] | list[int | float] | ndarray[Any, dtype[Any]] | ndarray[Any, dtype[floating[_32Bit]]] | list[int] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | _NotAnArray | list[str] | list[list[int]] | list[list[str]] | Any (from error) | list[list[Any (from error)]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]], list[list[Any (from error)]] | ndarray[Any, dtype[Any]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[int] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | _NotAnArray | list[str] | Any (from error) | list[list[int]] | list[float] | list[int | float] | list[list[str]])")  [no-any-expr]
+ sklearn/utils/tests/test_multiclass.py:324:5: error: Expression type contains "Any" (has type "list[float] | list[int | float] | ndarray[Any, dtype[Any]] | ndarray[Any, dtype[floating[_32Bit]]] | list[int] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | _NotAnArray | list[str] | list[list[int]] | list[list[str]] | Any (from error) | list[list[Any (from error)]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]]")  [no-any-expr]
- sklearn/utils/tests/test_multiclass.py:324:5: error: Expression type contains "Any" (has type "list[list[Any (from error)]] | ndarray[Any, dtype[Any]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[int] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | _NotAnArray | list[str] | Any (from error) | list[float] | list[int | float] | list[list[int]] | list[list[str]]")  [no-any-expr]
+ sklearn/utils/tests/test_multiclass.py:324:5: error: Expression type contains "Any" (has type "list[list[Any (from error)]] | ndarray[Any, dtype[Any]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[int] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | _NotAnArray | list[str] | Any (from error) | list[list[int]] | list[float] | list[int | float] | list[list[str]]")  [no-any-expr]
+ sklearn/utils/tests/test_multiclass.py:324:39: error: Expression type contains "Any" (has type "product[(list[float] | list[int | float] | ndarray[Any, dtype[Any]] | ndarray[Any, dtype[floating[_32Bit]]] | list[int] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | _NotAnArray | list[str] | list[list[int]] | list[list[str]] | Any (from error) | list[list[Any (from error)]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]], list[list[Any (from error)]] | ndarray[Any, dtype[Any]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[int] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | _NotAnArray | list[str] | Any (from error) | list[list[int]] | list[float] | list[int | float] | list[list[str]])]")  [no-any-expr]
- sklearn/utils/tests/test_multiclass.py:324:5: error: Expression type contains "Any" (has type "list[list[Any (from error)]] | ndarray[Any, dtype[Any]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[list[int]] | list[list[str]] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | Any (from error) | _NotAnArray | list[int] | list[str] | list[float] | list[int | float]")  [no-any-expr]
- sklearn/utils/tests/test_multiclass.py:324:39: error: Expression type contains "Any" (has type "product[(list[list[Any (from error)]] | ndarray[Any, dtype[Any]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[int] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | _NotAnArray | list[str] | Any (from error) | list[float] | list[int | float] | list[list[int]] | list[list[str]], list[list[Any (from error)]] | ndarray[Any, dtype[Any]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[list[int]] | list[list[str]] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | Any (from error) | _NotAnArray | list[int] | list[str] | list[float] | list[int | float])]")  [no-any-expr]
- sklearn/utils/tests/test_multiclass.py:326:27: error: Expression type contains "Any" (has type "list[list[Any (from error)]] | ndarray[Any, dtype[Any]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[list[int]] | list[list[str]] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | Any (from error) | _NotAnArray | list[int] | list[str] | list[float] | list[int | float]")  [no-any-expr]
- sklearn/utils/tests/test_multiclass.py:326:41: error: Expression type contains "Any" (has type "list[list[Any (from error)]] | ndarray[Any, dtype[Any]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[int] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | _NotAnArray | list[str] | Any (from error) | list[float] | list[int | float] | list[list[int]] | list[list[str]]")  [no-any-expr]
+ sklearn/utils/tests/test_multiclass.py:326:27: error: Expression type contains "Any" (has type "list[list[Any (from error)]] | ndarray[Any, dtype[Any]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[int] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | _NotAnArray | list[str] | Any (from error) | list[list[int]] | list[float] | list[int | float] | list[list[str]]")  [no-any-expr]
+ sklearn/utils/tests/test_multiclass.py:326:41: error: Expression type contains "Any" (has type "list[float] | list[int | float] | ndarray[Any, dtype[Any]] | ndarray[Any, dtype[floating[_32Bit]]] | list[int] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | _NotAnArray | list[str] | list[list[int]] | list[list[str]] | Any (from error) | list[list[Any (from error)]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]]")  [no-any-expr]
+ sklearn/utils/tests/test_multiclass.py:328:27: error: Expression type contains "Any" (has type "list[float] | list[int | float] | ndarray[Any, dtype[Any]] | ndarray[Any, dtype[floating[_32Bit]]] | list[int] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | _NotAnArray | list[str] | list[list[int]] | list[list[str]] | Any (from error) | list[list[Any (from error)]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]]")  [no-any-expr]
- sklearn/utils/tests/test_multiclass.py:328:27: error: Expression type contains "Any" (has type "list[list[Any (from error)]] | ndarray[Any, dtype[Any]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[int] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | _NotAnArray | list[str] | Any (from error) | list[float] | list[int | float] | list[list[int]] | list[list[str]]")  [no-any-expr]
+ sklearn/utils/tests/test_multiclass.py:328:41: error: Expression type contains "Any" (has type "list[list[Any (from error)]] | ndarray[Any, dtype[Any]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[int] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | _NotAnArray | list[str] | Any (from error) | list[list[int]] | list[float] | list[int | float] | list[list[str]]")  [no-any-expr]
- sklearn/utils/tests/test_multiclass.py:328:41: error: Expression type contains "Any" (has type "list[list[Any (from error)]] | ndarray[Any, dtype[Any]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[list[int]] | list[list[str]] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | Any (from error) | _NotAnArray | list[int] | list[str] | list[float] | list[int | float]")  [no-any-expr]
- sklearn/tree/tests/test_tree.py:612:5: error: Expression type contains "Any" (has type "(int | None, Any (from omitted generics))")  [no-any-expr]
+ sklearn/tree/tests/test_tree.py:612:5: error: Expression type contains "Any" (has type "(None | int, Any (from omitted generics))")  [no-any-expr]
- sklearn/tree/tests/test_tree.py:612:33: error: Expression type contains "Any" (has type "product[(int | None, Any (from omitted generics))]")  [no-any-expr]
+ sklearn/tree/tests/test_tree.py:612:33: error: Expression type contains "Any" (has type "product[(None | int, Any (from omitted generics))]")  [no-any-expr]
- sklearn/tree/tests/test_tree.py:643:5: error: Expression type contains "Any" (has type "(int | None, Any (from omitted generics))")  [no-any-expr]
+ sklearn/tree/tests/test_tree.py:643:5: error: Expression type contains "Any" (has type "(None | int, Any (from omitted generics))")  [no-any-expr]
- sklearn/tree/tests/test_tree.py:643:33: error: Expression type contains "Any" (has type "product[(int | None, Any (from omitted generics))]")  [no-any-expr]
+ sklearn/tree/tests/test_tree.py:643:33: error: Expression type contains "Any" (has type "product[(None | int, Any (from omitted generics))]")  [no-any-expr]
- sklearn/tree/tests/test_tree.py:822:5: error: Expression type contains "Any" (has type "(int | None, Any (from omitted generics))")  [no-any-expr]
+ sklearn/tree/tests/test_tree.py:822:5: error: Expression type contains "Any" (has type "(None | int, Any (from omitted generics))")  [no-any-expr]
- sklearn/tree/tests/test_tree.py:822:33: error: Expression type contains "Any" (has type "product[(int | None, Any (from omitted generics))]")  [no-any-expr]
+ sklearn/tree/tests/test_tree.py:822:33: error: Expression type contains "Any" (has type "product[(None | int, Any (from omitted generics))]")  [no-any-expr]

sympy (https://github.com/sympy/sympy)
- sympy/solvers/solvers.py:3633:38: error: Expression type contains "Any" (has type "dict[Dummy | Any, Any]")  [no-any-expr]
+ sympy/solvers/solvers.py:3633:38: error: Expression type contains "Any" (has type "dict[Any | Dummy, Any]")  [no-any-expr]
- sympy/solvers/solvers.py:3633:43: error: Expression type contains "Any" (has type "zip[(Dummy | Any, Any)]")  [no-any-expr]
+ sympy/solvers/solvers.py:3633:43: error: Expression type contains "Any" (has type "zip[(Any | Dummy, Any)]")  [no-any-expr]
- sympy/geometry/tests/test_point.py:389:9: error: Incompatible types in assignment (expression has type "((int, int) | list[int] | Point, (int, int) | list[int] | Point)", variable has type "(int, int) | list[int] | Point")  [assignment]
+ sympy/geometry/tests/test_point.py:389:9: error: Incompatible types in assignment (expression has type "(list[int] | Point | (int, int), list[int] | Point | (int, int))", variable has type "(int, int) | list[int] | Point")  [assignment]

@KotlinIsland KotlinIsland merged commit 547f363 into master Jul 20, 2024
19 checks passed
@KotlinIsland KotlinIsland deleted the noimplicitany branch July 20, 2024 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Warn against implicit return with explicitly annotated with Any
2 participants