fix min(it, key=func) of iterable of list[Any] gets its annotation from func #4886 - #4891
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 D119523576. (Because this pull request was imported automatically, there will not be any future comments.) |
This comment has been minimized.
This comment has been minimized.
asukaminato0721
marked this pull request as draft
September 10, 2026 17:19
asukaminato0721
marked this pull request as ready for review
September 10, 2026 17:45
|
Diff from mypy_primer, showing the effect of this PR on open source code: ============================================================
SUMMARY
============================================================
Total: +51 new errors, -51 fixed errors
By preset: +12/-34 (default), +13/-34 (strict)
Projects with changes (25):
tornado: +1 -0
pytest: +1 -0
jax: +0 -5
scipy-stubs: +8 -0
spark: +2 -0
colour: +5 -19
scikit-learn: +1 -1
materialize: +1 -0
freqtrade: +1 -0
mongo-python-driver: +1 -0
schemathesis: +4 -0
pytest-autoprofile: +1 -0
streamlit: +2 -2
ibis: +1 -0
anyio: +0 -2
ignite: +1 -0
static-frame: +3 -3
pandas: +11 -15
xarray-dataclasses: +1 -0
numpy-stl: +1 -0
core: +0 -1
sphinx: +0 -2
pydantic: +1 -0
spack: +1 -1
optuna: +3 -0
============================================================
FULL DIFF DETAILS
------------------------------------------------------------
tornado (https://github.com/tornadoweb/tornado)
+ ERROR tornado/queues.py:392:16-42: Returning Any from function declared to return "_T" [no-any-return-explicit]
pytest (https://github.com/pytest-dev/pytest)
+ ERROR src/_pytest/recwarn.py:86:16-52: Returning Any from function declared to return "WarningsRecorder | Any" [no-any-return-explicit]
jax (https://github.com/google/jax)
- ERROR jax/_src/interpreters/partial_eval.py:606:41-42: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/interpreters/partial_eval.py:607:14-15: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/interpreters/partial_eval.py:611:50-51: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/interpreters/partial_eval.py:613:19-20: The type of this argument is unknown [unknown-argument-type]
- ERROR jax/_src/interpreters/partial_eval.py:615:18-19: The type of this argument is unknown [unknown-argument-type]
scipy-stubs (https://github.com/scipy/scipy-stubs)
+ ERROR tests/linalg/test__decomp_svd.pyi:73:12-57: assert_type(ndarray[tuple[Any, ...], dtype[numpy.bool]], ndarray[tuple[Any, ...], dtype[signedinteger[_NBitIntP]]]) failed [assert-type]
+ ERROR tests/linalg/test__decomp_svd.pyi:74:12-64: assert_type(ndarray[tuple[Any, ...], dtype[numpy.bool]], ndarray[tuple[Any, ...], dtype[float64]]) failed [assert-type]
+ ERROR tests/special/test_ufuncs.pyi:82:12-38: assert_type(ndarray[tuple[Any, ...], dtype[floating[_32Bit]]], ndarray[tuple[Any, ...], dtype[float64]]) failed [assert-type]
+ ERROR tests/special/test_ufuncs.pyi:84:12-40: assert_type(ndarray[tuple[Any, ...], dtype[floating[_32Bit]]], ndarray[tuple[Any, ...], dtype[float64]]) failed [assert-type]
+ ERROR tests/special/test_ufuncs.pyi:87:1-14: Result of call expression is of type `ndarray[tuple[Any, ...], dtype[floating[_32Bit]]]` and is not used; assign to `_` if this is intentional [unused-call-result]
+ ERROR tests/special/test_ufuncs.pyi:87:16-17: Unused `# pyrefly: ignore` comment for code(s): no-matching-overload [unused-ignore]
+ ERROR tests/special/test_ufuncs.pyi:112:12-39: assert_type(ndarray[tuple[Any, ...], dtype[floating[_32Bit]]], ndarray[tuple[Any, ...], dtype[float64]]) failed [assert-type]
+ ERROR tests/special/test_ufuncs.pyi:114:12-41: assert_type(ndarray[tuple[Any, ...], dtype[floating[_32Bit]]], ndarray[tuple[Any, ...], dtype[float64]]) failed [assert-type]
spark (https://github.com/apache/spark)
+ ERROR python/pyspark/sql/tests/pandas/test_pandas_udf_typehints.py:380:20-44: Returning Any from function declared to return "float64" [no-any-return-explicit]
+ ERROR python/pyspark/sql/tests/pandas/test_pandas_udf_typehints_with_future_annotations.py:275:20-44: Returning Any from function declared to return "float64" [no-any-return-explicit]
colour (https://github.com/colour-science/colour)
+ ERROR colour/appearance/scam.py:487:73-74: Unused `# type: ignore` comment [unused-type-ignore]
- ERROR colour/graph/conversion.py:480:19-70: Argument `list[float | ndarray[tuple[Any, ...], dtype[float64 | floating[_16Bit] | floating[_32Bit]]] | None]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
- ERROR colour/graph/conversion.py:602:19-70: Argument `list[float | ndarray[tuple[Any, ...], dtype[float64 | floating[_16Bit] | floating[_32Bit]]] | None]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
- ERROR colour/graph/conversion.py:732:19-70: Argument `list[float | ndarray[tuple[Any, ...], dtype[float64 | floating[_16Bit] | floating[_32Bit]]] | None]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
- ERROR colour/graph/conversion.py:870:19-70: Argument `list[float | ndarray[tuple[Any, ...], dtype[float64 | floating[_16Bit] | floating[_32Bit]]] | None]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
- ERROR colour/hints/__init__.py:847:11-17: Argument `list[Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `arraylike` [bad-argument-type]
- ERROR colour/hints/__init__.py:849:11-17: Argument `list[Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `arraylike` [bad-argument-type]
- ERROR colour/hints/__init__.py:858:21-27: Argument `list[Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `number_or_arraylike` [bad-argument-type]
- ERROR colour/hints/__init__.py:860:21-27: Argument `list[Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `number_or_arraylike` [bad-argument-type]
- ERROR colour/hints/__init__.py:869:25-31: Argument `list[Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `arraylike` [bad-argument-type]
- ERROR colour/hints/__init__.py:871:25-31: Argument `list[Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `arraylike` [bad-argument-type]
- ERROR colour/notation/munsell/centore2014.py:653:46-73: Argument `list[float | ndarray[tuple[Any, ...], dtype[float64 | floating[_16Bit] | floating[_32Bit]]] | Unknown]` is not assignable to parameter `hue_and_code` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `hue_to_hue_angle` [bad-argument-type]
- ERROR colour/notation/munsell/centore2014.py:656:13-47: Argument `list[float | ndarray[tuple[Any, ...], dtype[float64 | floating[_16Bit] | floating[_32Bit]]] | Unknown]` is not assignable to parameter `hue_and_value_and_code` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `maximum_chroma_from_renotation` [bad-argument-type]
- ERROR colour/notation/munsell/centore2014.py:785:13-47: Argument `list[float | ndarray[tuple[Any, ...], dtype[float64 | floating[_16Bit] | floating[_32Bit]]] | Unknown]` is not assignable to parameter `hue_and_value_and_code` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `maximum_chroma_from_renotation` [bad-argument-type]
- ERROR colour/notation/munsell/centore2014.py:1153:13-74: Argument `list[float | ndarray]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
+ ERROR colour/utilities/array.py:1192:16-56: Returning Any from function declared to return "ndarray[tuple[Any, ...], dtype[float64 | floating[_16Bit] | floating[_32Bit]]]" [no-any-return-explicit]
- ERROR colour/utilities/array.py:5245:9-5248:33: Implicit conversion of `bool | list[_NestedSequence[bytes | complex | str] | bytes | complex | str] | list[_NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype]] | tuple[_NestedSequence[bytes | complex | str] | bytes | complex | str, ...] | tuple[_NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype], ...]` to `bool` is not allowed [implicit-bool]
- ERROR colour/utilities/array.py:5247:13-14: Implicit conversion of `list[_NestedSequence[bytes | complex | str] | bytes | complex | str] | list[_NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype]] | tuple[_NestedSequence[bytes | complex | str] | bytes | complex | str, ...] | tuple[_NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype], ...]` to `bool` is not allowed [implicit-bool]
- ERROR colour/utilities/array.py:5254:8-42: Implicit conversion of `Literal[False] | list[_NestedSequence[bytes | complex | str] | bytes | complex | str] | list[_NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype]] | tuple[_NestedSequence[bytes | complex | str] | bytes | complex | str, ...] | tuple[_NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype], ...]` to `bool` is not allowed [implicit-bool]
+ ERROR colour/utilities/array.py:5245:9-5248:33: Implicit conversion of `bool | list[Any] | tuple[_NestedSequence[bytes | complex | str] | bytes | complex | str, ...] | tuple[_NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype], ...]` to `bool` is not allowed [implicit-bool]
+ ERROR colour/utilities/array.py:5247:13-14: Implicit conversion of `list[Any] | tuple[_NestedSequence[bytes | complex | str] | bytes | complex | str, ...] | tuple[_NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype], ...]` to `bool` is not allowed [implicit-bool]
+ ERROR colour/utilities/array.py:5254:8-42: Implicit conversion of `Literal[False] | list[Any] | tuple[_NestedSequence[bytes | complex | str] | bytes | complex | str, ...] | tuple[_NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype], ...]` to `bool` is not allowed [implicit-bool]
- ERROR colour/utilities/tests/test_array.py:3407:29-41: Argument `list[None]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `colour.utilities.array.has_only_nan` [bad-argument-type]
- ERROR colour/utilities/tests/test_array.py:3409:33-45: Argument `list[bool | None]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `colour.utilities.array.has_only_nan` [bad-argument-type]
scikit-learn (https://github.com/scikit-learn/scikit-learn)
- ERROR sklearn/dummy.py:308:28-314:18: No matching overload found for function `numpy.lib._shape_base_impl.tile` called with arguments: (list[Unknown], list[Integral | int | Unknown]) [no-matching-overload]
+ ERROR sklearn/externals/array_api_extra/_lib/_helpers.py:513:16-63: Returning Any from function declared to return "T" [no-any-return-explicit]
materialize (https://github.com/MaterializeInc/materialize)
+ ERROR misc/python/materialize/mzexplore/extract.py:482:16-64: Returning Any from function declared to return "str" [no-any-return-explicit]
freqtrade (https://github.com/freqtrade/freqtrade)
+ ERROR freqtrade/optimize/hyperopt/hyperopt_auto.py:61:20-61: Returning Any from function declared to return "(...) -> Unknown" [no-any-return-explicit]
mongo-python-driver (https://github.com/mongodb/mongo-python-driver)
+ ERROR bson/__init__.py:1495:16-43: Returning Any from function declared to return "dict[str, Any]" [no-any-return-explicit]
schemathesis (https://github.com/schemathesis/schemathesis)
+ ERROR src/schemathesis/specs/openapi/adapter/parameters.py:1588:24-47: Returning Any from function declared to return "GeneratedValue" [no-any-return-explicit]
+ ERROR src/schemathesis/specs/openapi/adapter/parameters.py:2504:24-47: Returning Any from function declared to return "GeneratedValue" [no-any-return-explicit]
+ ERROR src/schemathesis/specs/openapi/stateful/__init__.py:159:16-57: Returning Any from function declared to return "Case[Unknown]" [no-any-return-explicit]
+ ERROR src/schemathesis/specs/openapi/stateful/__init__.py:160:12-53: Returning Any from function declared to return "Case[Unknown]" [no-any-return-explicit]
pytest-autoprofile (https://gitlab.com/TTsangSC/pytest-autoprofile)
+ ERROR src/pytest_autoprofile/rewriting.py:212:16-214:10: Returning Any from function declared to return "AST" [no-any-return-explicit]
streamlit (https://github.com/streamlit/streamlit)
+ ERROR lib/streamlit/runtime/secrets.py:127:16-45: Returning Any from function declared to return "Iterator[str]" [no-any-return-explicit]
+ ERROR lib/streamlit/runtime/secrets.py:153:16-49: Returning Any from function declared to return "dict[str, Any]" [no-any-return-explicit]
- ERROR scripts/changelog_categorize_prs.py:201:17-45: Implicit conversion of `PathLike[bytes]` to `bool` is not allowed [implicit-bool]
- ERROR scripts/changelog_fetch_prs.py:228:17-45: Implicit conversion of `PathLike[bytes]` to `bool` is not allowed [implicit-bool]
ibis (https://github.com/ibis-project/ibis)
+ ERROR ibis/expr/operations/core.py:177:16-54: Returning Any from function declared to return "DataShape" [no-any-return-explicit]
anyio (https://github.com/agronholm/anyio)
- ERROR src/anyio/_core/_sockets.py:297:51-55: Argument `PathLike[Any] | bytes | str` is not assignable to parameter `path` with type `bytes | str` in function `anyio.abc._eventloop.AsyncBackend.connect_unix` [bad-argument-type]
- ERROR src/anyio/_core/_sockets.py:621:65-623:6: No matching overload found for function `anyio.abc._eventloop.AsyncBackend.create_unix_datagram_socket` called with arguments: (socket, PathLike[Any] | bytes | str) [no-matching-overload]
ignite (https://github.com/pytorch/ignite)
+ ERROR ignite/engine/engine.py:1099:20-54: Returning Any from function declared to return "State" [no-any-return-explicit]
static-frame (https://github.com/static-frame/static-frame)
+ ERROR static_frame/core/index_hierarchy.py:1062:20-56: Returning Any from function declared to return "Self@IndexHierarchy" [no-any-return-explicit]
+ ERROR static_frame/core/index_hierarchy.py:1064:20-63: Returning Any from function declared to return "Self@IndexHierarchy" [no-any-return-explicit]
+ ERROR static_frame/core/index_hierarchy.py:1066:20-61: Returning Any from function declared to return "Self@IndexHierarchy" [no-any-return-explicit]
- ERROR static_frame/core/protocol_dfi.py:195:49-50: Unused `# type: ignore` comment [unused-type-ignore]
- ERROR static_frame/core/series.py:3007:33-34: Unused `# type: ignore` comment [unused-type-ignore]
- ERROR static_frame/core/util.py:4104:31-32: Unused `# type: ignore` comment [unused-type-ignore]
pandas (https://github.com/pandas-dev/pandas)
+ ERROR pandas/core/nanops.py:938:16-54: Returning Any from function declared to return "NaTType | datetime64 | ndarray | timedelta64" [no-any-return-explicit]
- ERROR pandas/core/nanops.py:1698:12-18: Returned type `float64 | floating | ndarray[tuple[Any, ...], dtype[floating]] | ndarray` is not assignable to declared return type `float | ndarray` [bad-return]
- ERROR pandas/core/nanops.py:1757:12-18: Returned type `float64 | floating | ndarray[tuple[Any, ...], dtype[floating]] | ndarray` is not assignable to declared return type `float | ndarray` [bad-return]
+ ERROR pandas/core/roperator.py:48:12-31: Returning Any from function declared to return "tuple[Any, Any]" [no-any-return-explicit]
- ERROR pandas/plotting/_matplotlib/core.py:1217:26-1220:14: No matching overload found for function `numpy.lib._shape_base_impl.tile` called with arguments: (list[Number | number], tuple[int, int]) [no-matching-overload]
+ ERROR pandas/tests/arithmetic/test_bool.py:25:9-26: Result of call expression is of type `tuple[int, int]` and is not used; assign to `_` if this is intentional [unused-call-result]
- ERROR pandas/tests/frame/methods/test_diff.py:274:31-52: No matching overload found for function `numpy._core.fromnumeric.repeat` called with arguments: (list[NAType | int], Literal[2]) [no-matching-overload]
- ERROR pandas/tests/frame/methods/test_diff.py:275:29-50: No matching overload found for function `numpy.lib._shape_base_impl.tile` called with arguments: (list[NAType | int], Literal[2]) [no-matching-overload]
- ERROR pandas/tests/groupby/test_groupby_dropna.py:510:23-85: No matching overload found for function `numpy.lib._function_base_impl.append` called with arguments: (Unknown, None) [no-matching-overload]
+ ERROR pandas/tests/groupby/test_groupby_dropna.py:510:23-85: No matching overload found for function `numpy.lib._function_base_impl.append` called with arguments: (ndarray[tuple[Any, ...], dtype[signedinteger[_64Bit]]], None) [no-matching-overload]
- ERROR pandas/tests/groupby/test_groupby_dropna.py:510:55-78: No matching overload found for function `numpy.random._generator.Generator.choice` called with arguments: (list[int | None], size=Literal[19]) [no-matching-overload]
- ERROR pandas/tests/groupby/test_groupby_dropna.py:596:23-85: No matching overload found for function `numpy.lib._function_base_impl.append` called with arguments: (Unknown, None) [no-matching-overload]
+ ERROR pandas/tests/groupby/test_groupby_dropna.py:596:23-85: No matching overload found for function `numpy.lib._function_base_impl.append` called with arguments: (ndarray[tuple[Any, ...], dtype[signedinteger[_64Bit]]], None) [no-matching-overload]
- ERROR pandas/tests/groupby/test_groupby_dropna.py:596:55-78: No matching overload found for function `numpy.random._generator.Generator.choice` called with arguments: (list[int | None], size=Literal[19]) [no-matching-overload]
- ERROR pandas/tests/groupby/test_groupby_dropna.py:648:45-63: No matching overload found for function `numpy.random._generator.Generator.choice` called with arguments: (list[int | None], Literal[30]) [no-matching-overload]
+ ERROR pandas/tests/groupby/test_groupby_dropna.py:659:9-662:64: The type of `mask` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR pandas/tests/groupby/test_groupby_dropna.py:665:16-26: The type of `mask` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
+ ERROR pandas/tests/groupby/test_groupby_dropna.py:666:19-23: The type of this argument is unknown [unknown-argument-type]
- ERROR pandas/tests/groupby/test_groupby_dropna.py:673:45-63: No matching overload found for function `numpy.random._generator.Generator.choice` called with arguments: (list[int | None], Literal[30]) [no-matching-overload]
- ERROR pandas/tests/groupby/test_groupby_dropna.py:685:45-63: No matching overload found for function `numpy.random._generator.Generator.choice` called with arguments: (list[int | None], Literal[30]) [no-matching-overload]
- ERROR pandas/tests/scalar/timestamp/test_arithmetic.py:347:37-47: `+` is not supported between `NaTType` and `ndarray[tuple[Any, ...], dtype[timedelta64[timedelta] | timedelta64 | timedelta64[None]]]` [unsupported-operation]
+ ERROR pandas/tests/scalar/timestamp/test_arithmetic.py:347:37-47: `+` is not supported between `NaTType` and `ndarray[tuple[Any, ...], dtype[timedelta64[timedelta] | timedelta64[None]]]` [unsupported-operation]
- ERROR pandas/tests/scalar/timestamp/test_arithmetic.py:350:37-47: `-` is not supported between `NaTType` and `ndarray[tuple[Any, ...], dtype[timedelta64[timedelta] | timedelta64 | timedelta64[None]]]` [unsupported-operation]
+ ERROR pandas/tests/scalar/timestamp/test_arithmetic.py:350:37-47: `-` is not supported between `NaTType` and `ndarray[tuple[Any, ...], dtype[timedelta64[timedelta] | timedelta64[None]]]` [unsupported-operation]
- ERROR pandas/tests/scalar/timestamp/test_arithmetic.py:350:37-47: `-` is not supported between `Timestamp` and `ndarray[tuple[Any, ...], dtype[timedelta64[timedelta] | timedelta64 | timedelta64[None]]]` [unsupported-operation]
+ ERROR pandas/tests/scalar/timestamp/test_arithmetic.py:350:37-47: `-` is not supported between `Timestamp` and `ndarray[tuple[Any, ...], dtype[timedelta64[timedelta] | timedelta64[None]]]` [unsupported-operation]
xarray-dataclasses (https://github.com/astropenguin/xarray-dataclasses)
+ ERROR xarray_dataclasses/datamodel.py:144:20-54: Returning Any from function declared to return "DataArray" [no-any-return-explicit]
numpy-stl (https://github.com/WoLpH/numpy-stl)
+ ERROR stl/base.py:561:27-71: `ndarray[tuple[Any, ...], dtype[float64]]` is not assignable to attribute `_centroids` with type `ndarray[tuple[int, int], dtype[floating[_32Bit]]]` [bad-assignment]
core (https://github.com/home-assistant/core)
- ERROR homeassistant/components/nissan_leaf/sensor.py:71:52-53: Unused `# type: ignore` comment [unused-type-ignore]
sphinx (https://github.com/sphinx-doc/sphinx)
- ERROR sphinx/directives/other.py:303:24-78: The type of `endindex` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR sphinx/directives/other.py:307:21-29: The type of `index` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
pydantic (https://github.com/pydantic/pydantic)
+ ERROR pydantic/_internal/_dataclasses.py:224:12-43: Returning Any from function declared to return "Field[Any]" [no-any-return-explicit]
spack (https://github.com/spack/spack)
- ERROR lib/spack/spack/cmd/bootstrap.py:256:23-24: The type of this argument is unknown [unknown-argument-type]
+ ERROR lib/spack/spack/util/win_acl.py:826:16-51: Returning Any from function declared to return "list[AccessControlEntry]" [no-any-return-explicit]
optuna (https://github.com/optuna/optuna)
+ ERROR optuna/importance/_fanova/_tree.py:306:12-62: Returning Any from function declared to return "float" [no-any-return-explicit]
+ ERROR optuna/pruners/_percentile.py:25:16-33: Returning Any from function declared to return "float" [no-any-return-explicit]
+ ERROR optuna/pruners/_percentile.py:26:12-29: Returning Any from function declared to return "float" [no-any-return-explicit] |
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 #4886
The change preserves Any from the input instead of replacing it with the callback’s parameter type.
Test Plan
add test