From: Jérôme Benoit Date: Mon, 31 Aug 2026 11:14:58 +0000 (+0200) Subject: chore(qa): refresh BasedPyright snapshots X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=c078cba899c0042eb1c3e28534f4f415df1d1dc9;p=freqai-strategies.git chore(qa): refresh BasedPyright snapshots --- diff --git a/ReforceXY/.basedpyright/diagnostics.json b/ReforceXY/.basedpyright/diagnostics.json index 892a4da..c128cbc 100644 --- a/ReforceXY/.basedpyright/diagnostics.json +++ b/ReforceXY/.basedpyright/diagnostics.json @@ -45,7 +45,7 @@ "endCharacter": 21, "endLine": 1886, "file": "ReforceXY/reward_space_analysis/reward_space_analysis.py", - "message": "Argument of type \"NDArray[Any]\" cannot be assigned to parameter \"bins\" of type \"int | Sequence[float] | Index[int] | Index[float] | IntervalIndex[Interval[Any]] | Series[Any]\" in function \"cut\"\n  Type \"NDArray[Any]\" is not assignable to type \"int | Sequence[float] | Index[int] | Index[float] | IntervalIndex[Interval[Any]] | Series[Any]\"\n    \"ndarray[_AnyShape, dtype[Any]]\" is not assignable to \"int\"\n    \"ndarray[_AnyShape, dtype[Any]]\" is not assignable to \"Sequence[float]\"\n    \"ndarray[_AnyShape, dtype[Any]]\" is not assignable to \"Index[int]\"\n    \"ndarray[_AnyShape, dtype[Any]]\" is not assignable to \"Index[float]\"\n    \"ndarray[_AnyShape, dtype[Any]]\" is not assignable to \"IntervalIndex[Interval[Any]]\"\n    \"ndarray[_AnyShape, dtype[Any]]\" is not assignable to \"Series[Any]\"", + "message": "Argument of type \"_Array1D[Any]\" cannot be assigned to parameter \"bins\" of type \"int | Sequence[float] | Index[int] | Index[float] | IntervalIndex[Interval[Any]] | Series[Any]\" in function \"cut\"\n  Type \"_Array1D[Any]\" is not assignable to type \"int | Sequence[float] | Index[int] | Index[float] | IntervalIndex[Interval[Any]] | Series[Any]\"\n    \"ndarray[tuple[int], dtype[Any]]\" is not assignable to \"int\"\n    \"ndarray[tuple[int], dtype[Any]]\" is not assignable to \"Sequence[float]\"\n    \"ndarray[tuple[int], dtype[Any]]\" is not assignable to \"Index[int]\"\n    \"ndarray[tuple[int], dtype[Any]]\" is not assignable to \"Index[float]\"\n    \"ndarray[tuple[int], dtype[Any]]\" is not assignable to \"IntervalIndex[Interval[Any]]\"\n    \"ndarray[tuple[int], dtype[Any]]\" is not assignable to \"Series[Any]\"", "rule": "reportArgumentType", "severity": "error", "startCharacter": 13, @@ -211,21 +211,41 @@ "startCharacter": 54, "startLine": 2411 }, + { + "endCharacter": 76, + "endLine": 2431, + "file": "ReforceXY/reward_space_analysis/reward_space_analysis.py", + "message": "No overloads for \"histogram\" match the provided arguments", + "rule": "reportCallIssue", + "severity": "error", + "startCharacter": 24, + "startLine": 2431 + }, { "endCharacter": 49, "endLine": 2431, "file": "ReforceXY/reward_space_analysis/reward_space_analysis.py", - "message": "Argument of type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" cannot be assigned to parameter \"a\" of type \"ArrayLike\" in function \"histogram\"\n  Type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" is not assignable to type \"ArrayLike\"\n    Type \"ExtensionArray\" is not assignable to type \"ArrayLike\"\n      \"ExtensionArray\" is incompatible with protocol \"Buffer\"\n        \"__buffer__\" is not present\n      \"ExtensionArray\" is incompatible with protocol \"_SupportsArray[dtype[Any]]\"\n        \"__array__\" is not present\n      \"ExtensionArray\" is incompatible with protocol \"_NestedSequence[_SupportsArray[dtype[Any]]]\"\n        \"__reversed__\" is not present\n ...", + "message": "Argument of type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" cannot be assigned to parameter \"a\" of type \"_ArrayLikeComplex_co\" in function \"histogram\"\n  Type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" is not assignable to type \"_ArrayLikeComplex_co\"\n    Type \"ExtensionArray\" is not assignable to type \"_ArrayLikeComplex_co\"\n      \"ExtensionArray\" is incompatible with protocol \"_SupportsArray[dtype[numpy.bool[builtins.bool] | number[Any, Any]]]\"\n        \"__array__\" is not present\n      \"ExtensionArray\" is incompatible with protocol \"_NestedSequence[_SupportsArray[dtype[numpy.bool[builtins.bool] | number[Any, Any]]]]\"\n        \"__reversed__\" is not present\n        \"count\" is not present\n        \"index\" is not present\n ...", "rule": "reportArgumentType", "severity": "error", "startCharacter": 37, "startLine": 2431 }, + { + "endCharacter": 74, + "endLine": 2432, + "file": "ReforceXY/reward_space_analysis/reward_space_analysis.py", + "message": "No overloads for \"histogram\" match the provided arguments", + "rule": "reportCallIssue", + "severity": "error", + "startCharacter": 23, + "startLine": 2432 + }, { "endCharacter": 47, "endLine": 2432, "file": "ReforceXY/reward_space_analysis/reward_space_analysis.py", - "message": "Argument of type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" cannot be assigned to parameter \"a\" of type \"ArrayLike\" in function \"histogram\"\n  Type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" is not assignable to type \"ArrayLike\"\n    Type \"ExtensionArray\" is not assignable to type \"ArrayLike\"\n      \"ExtensionArray\" is incompatible with protocol \"Buffer\"\n        \"__buffer__\" is not present\n      \"ExtensionArray\" is incompatible with protocol \"_SupportsArray[dtype[Any]]\"\n        \"__array__\" is not present\n      \"ExtensionArray\" is incompatible with protocol \"_NestedSequence[_SupportsArray[dtype[Any]]]\"\n        \"__reversed__\" is not present\n ...", + "message": "Argument of type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" cannot be assigned to parameter \"a\" of type \"_ArrayLikeComplex_co\" in function \"histogram\"\n  Type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" is not assignable to type \"_ArrayLikeComplex_co\"\n    Type \"ExtensionArray\" is not assignable to type \"_ArrayLikeComplex_co\"\n      \"ExtensionArray\" is incompatible with protocol \"_SupportsArray[dtype[numpy.bool[builtins.bool] | number[Any, Any]]]\"\n        \"__array__\" is not present\n      \"ExtensionArray\" is incompatible with protocol \"_NestedSequence[_SupportsArray[dtype[numpy.bool[builtins.bool] | number[Any, Any]]]]\"\n        \"__reversed__\" is not present\n        \"count\" is not present\n        \"index\" is not present\n ...", "rule": "reportArgumentType", "severity": "error", "startCharacter": 36, @@ -235,7 +255,7 @@ "endCharacter": 51, "endLine": 2447, "file": "ReforceXY/reward_space_analysis/reward_space_analysis.py", - "message": "Argument of type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" cannot be assigned to parameter \"u_values\" of type \"ToFloatND\" in function \"wasserstein_distance\"\n  Type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" is not assignable to type \"ToFloatND\"\n    Type \"ExtensionArray\" is not assignable to type \"ToFloatND\"\n      \"ExtensionArray\" is incompatible with protocol \"_CanArrayND[floating_co]\"\n        \"__array__\" is not present\n      \"ExtensionArray\" is incompatible with protocol \"SequenceND[float | _CanArray[floating_co]]\"\n        \"__reversed__\" is not present\n        \"count\" is not present\n        \"index\" is not present\n ...", + "message": "Argument of type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" cannot be assigned to parameter \"u_values\" of type \"ToFloatND\" in function \"wasserstein_distance\"\n  Type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" is not assignable to type \"ToFloatND\"\n    Type \"ExtensionArray\" is not assignable to type \"ToFloatND\"\n      \"ExtensionArray\" is incompatible with protocol \"_CanArrayND[floating_co]\"\n        \"__array__\" is not present\n      \"ExtensionArray\" is incompatible with protocol \"SequenceND[py_float | _CanArray[floating_co]]\"\n        \"__reversed__\" is not present\n        \"count\" is not present\n        \"index\" is not present\n ...", "rule": "reportArgumentType", "severity": "error", "startCharacter": 39, @@ -245,17 +265,27 @@ "endCharacter": 64, "endLine": 2447, "file": "ReforceXY/reward_space_analysis/reward_space_analysis.py", - "message": "Argument of type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" cannot be assigned to parameter \"v_values\" of type \"ToFloatND\" in function \"wasserstein_distance\"\n  Type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" is not assignable to type \"ToFloatND\"\n    Type \"ExtensionArray\" is not assignable to type \"ToFloatND\"\n      \"ExtensionArray\" is incompatible with protocol \"_CanArrayND[floating_co]\"\n        \"__array__\" is not present\n      \"ExtensionArray\" is incompatible with protocol \"SequenceND[float | _CanArray[floating_co]]\"\n        \"__reversed__\" is not present\n        \"count\" is not present\n        \"index\" is not present\n ...", + "message": "Argument of type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" cannot be assigned to parameter \"v_values\" of type \"ToFloatND\" in function \"wasserstein_distance\"\n  Type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" is not assignable to type \"ToFloatND\"\n    Type \"ExtensionArray\" is not assignable to type \"ToFloatND\"\n      \"ExtensionArray\" is incompatible with protocol \"_CanArrayND[floating_co]\"\n        \"__array__\" is not present\n      \"ExtensionArray\" is incompatible with protocol \"SequenceND[py_float | _CanArray[floating_co]]\"\n        \"__reversed__\" is not present\n        \"count\" is not present\n        \"index\" is not present\n ...", "rule": "reportArgumentType", "severity": "error", "startCharacter": 53, "startLine": 2447 }, + { + "endCharacter": 68, + "endLine": 2450, + "file": "ReforceXY/reward_space_analysis/reward_space_analysis.py", + "message": "No overloads for \"ks_2samp\" match the provided arguments", + "rule": "reportCallIssue", + "severity": "error", + "startCharacter": 27, + "startLine": 2450 + }, { "endCharacter": 54, "endLine": 2450, "file": "ReforceXY/reward_space_analysis/reward_space_analysis.py", - "message": "Argument of type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" cannot be assigned to parameter \"data1\" of type \"ToFloatND\" in function \"ks_2samp\"\n  Type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" is not assignable to type \"ToFloatND\"\n    Type \"ExtensionArray\" is not assignable to type \"ToFloatND\"\n      \"ExtensionArray\" is incompatible with protocol \"_CanArrayND[floating_co]\"\n        \"__array__\" is not present\n      \"ExtensionArray\" is incompatible with protocol \"SequenceND[float | _CanArray[floating_co]]\"\n        \"__reversed__\" is not present\n        \"count\" is not present\n        \"index\" is not present\n ...", + "message": "Argument of type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" cannot be assigned to parameter \"data1\" of type \"ToFloatND\" in function \"ks_2samp\"\n  Type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" is not assignable to type \"ToFloatND\"\n    Type \"ExtensionArray\" is not assignable to type \"ToFloatND\"\n      \"ExtensionArray\" is incompatible with protocol \"_CanArrayND[floating_co]\"\n        \"__array__\" is not present\n      \"ExtensionArray\" is incompatible with protocol \"SequenceND[py_float | _CanArray[floating_co]]\"\n        \"__reversed__\" is not present\n        \"count\" is not present\n        \"index\" is not present\n ...", "rule": "reportArgumentType", "severity": "error", "startCharacter": 42, @@ -265,7 +295,7 @@ "endCharacter": 67, "endLine": 2450, "file": "ReforceXY/reward_space_analysis/reward_space_analysis.py", - "message": "Argument of type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" cannot be assigned to parameter \"data2\" of type \"ToFloatND\" in function \"ks_2samp\"\n  Type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" is not assignable to type \"ToFloatND\"\n    Type \"ExtensionArray\" is not assignable to type \"ToFloatND\"\n      \"ExtensionArray\" is incompatible with protocol \"_CanArrayND[floating_co]\"\n        \"__array__\" is not present\n      \"ExtensionArray\" is incompatible with protocol \"SequenceND[float | _CanArray[floating_co]]\"\n        \"__reversed__\" is not present\n        \"count\" is not present\n        \"index\" is not present\n ...", + "message": "Argument of type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" cannot be assigned to parameter \"data2\" of type \"ToFloatND\" in function \"ks_2samp\"\n  Type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" is not assignable to type \"ToFloatND\"\n    Type \"ExtensionArray\" is not assignable to type \"ToFloatND\"\n      \"ExtensionArray\" is incompatible with protocol \"_CanArrayND[floating_co]\"\n        \"__array__\" is not present\n      \"ExtensionArray\" is incompatible with protocol \"SequenceND[py_float | _CanArray[floating_co]]\"\n        \"__reversed__\" is not present\n        \"count\" is not present\n        \"index\" is not present\n ...", "rule": "reportArgumentType", "severity": "error", "startCharacter": 56, @@ -295,7 +325,7 @@ "endCharacter": 28, "endLine": 2722, "file": "ReforceXY/reward_space_analysis/reward_space_analysis.py", - "message": "Argument of type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" cannot be assigned to parameter \"a\" of type \"ArrayLike\" in function \"ptp\"\n  Type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" is not assignable to type \"ArrayLike\"\n    Type \"ExtensionArray\" is not assignable to type \"ArrayLike\"\n      \"ExtensionArray\" is incompatible with protocol \"Buffer\"\n        \"__buffer__\" is not present\n      \"ExtensionArray\" is incompatible with protocol \"_SupportsArray[dtype[Any]]\"\n        \"__array__\" is not present\n      \"ExtensionArray\" is incompatible with protocol \"_NestedSequence[_SupportsArray[dtype[Any]]]\"\n        \"__reversed__\" is not present\n ...", + "message": "Argument of type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" cannot be assigned to parameter \"a\" of type \"_ArrayLikeNumeric_co\" in function \"ptp\"\n  Type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" is not assignable to type \"_ArrayLikeNumeric_co\"\n    Type \"ExtensionArray\" is not assignable to type \"_ArrayLikeNumeric_co\"\n      \"ExtensionArray\" is incompatible with protocol \"_SupportsArray[dtype[number[Any, Any] | numpy.bool[builtins.bool] | object_ | timedelta64[Any]]]\"\n        \"__array__\" is not present\n      \"ExtensionArray\" is incompatible with protocol \"_NestedSequence[_SupportsArray[dtype[number[Any, Any] | numpy.bool[builtins.bool] | object_ | timedelta64[Any]]]]\"\n        \"__reversed__\" is not present\n        \"count\" is not present\n        \"index\" is not present\n ...", "rule": "reportArgumentType", "severity": "error", "startCharacter": 18, @@ -335,7 +365,7 @@ "endCharacter": 55, "endLine": 2815, "file": "ReforceXY/reward_space_analysis/reward_space_analysis.py", - "message": "Argument of type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" cannot be assigned to parameter \"a\" of type \"_ArrayLikeComplex_co | _ArrayLikeObject_co\" in function \"mean\"\n  Type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" is not assignable to type \"_ArrayLikeComplex_co | _ArrayLikeObject_co\"\n    Type \"ExtensionArray\" is not assignable to type \"_ArrayLikeComplex_co | _ArrayLikeObject_co\"\n      \"ExtensionArray\" is incompatible with protocol \"_SupportsArray[dtype[numpy.bool[builtins.bool] | number[Any, int | float | complex]]]\"\n        \"__array__\" is not present\n      \"ExtensionArray\" is incompatible with protocol \"_NestedSequence[_SupportsArray[dtype[numpy.bool[builtins.bool] | number[Any, int | float | complex]]]]\"\n        \"__reversed__\" is not present\n        \"count\" is not present\n        \"index\" is not present\n ...", + "message": "Argument of type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" cannot be assigned to parameter \"a\" of type \"_ArrayLikeNumeric_co\" in function \"mean\"\n  Type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" is not assignable to type \"_ArrayLikeNumeric_co\"\n    Type \"ExtensionArray\" is not assignable to type \"_ArrayLikeNumeric_co\"\n      \"ExtensionArray\" is incompatible with protocol \"_SupportsArray[dtype[number[Any, Any] | numpy.bool[builtins.bool] | object_ | timedelta64[Any]]]\"\n        \"__array__\" is not present\n      \"ExtensionArray\" is incompatible with protocol \"_NestedSequence[_SupportsArray[dtype[number[Any, Any] | numpy.bool[builtins.bool] | object_ | timedelta64[Any]]]]\"\n        \"__reversed__\" is not present\n        \"count\" is not present\n        \"index\" is not present\n ...", "rule": "reportArgumentType", "severity": "error", "startCharacter": 51, @@ -355,7 +385,7 @@ "endCharacter": 53, "endLine": 2816, "file": "ReforceXY/reward_space_analysis/reward_space_analysis.py", - "message": "Argument of type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" cannot be assigned to parameter \"a\" of type \"_ArrayLikeComplex_co | _ArrayLikeObject_co\" in function \"std\"\n  Type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" is not assignable to type \"_ArrayLikeComplex_co | _ArrayLikeObject_co\"\n    Type \"ExtensionArray\" is not assignable to type \"_ArrayLikeComplex_co | _ArrayLikeObject_co\"\n      \"ExtensionArray\" is incompatible with protocol \"_SupportsArray[dtype[numpy.bool[builtins.bool] | number[Any, int | float | complex]]]\"\n        \"__array__\" is not present\n      \"ExtensionArray\" is incompatible with protocol \"_NestedSequence[_SupportsArray[dtype[numpy.bool[builtins.bool] | number[Any, int | float | complex]]]]\"\n        \"__reversed__\" is not present\n        \"count\" is not present\n        \"index\" is not present\n ...", + "message": "Argument of type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" cannot be assigned to parameter \"a\" of type \"_ArrayLikeNumeric_co\" in function \"std\"\n  Type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" is not assignable to type \"_ArrayLikeNumeric_co\"\n    Type \"ExtensionArray\" is not assignable to type \"_ArrayLikeNumeric_co\"\n      \"ExtensionArray\" is incompatible with protocol \"_SupportsArray[dtype[number[Any, Any] | numpy.bool[builtins.bool] | object_ | timedelta64[Any]]]\"\n        \"__array__\" is not present\n      \"ExtensionArray\" is incompatible with protocol \"_NestedSequence[_SupportsArray[dtype[number[Any, Any] | numpy.bool[builtins.bool] | object_ | timedelta64[Any]]]]\"\n        \"__reversed__\" is not present\n        \"count\" is not present\n        \"index\" is not present\n ...", "rule": "reportArgumentType", "severity": "error", "startCharacter": 49, @@ -375,7 +405,7 @@ "endCharacter": 38, "endLine": 2817, "file": "ReforceXY/reward_space_analysis/reward_space_analysis.py", - "message": "Argument of type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" cannot be assigned to parameter \"a\" of type \"ToFloatND\" in function \"skew\"\n  Type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" is not assignable to type \"ToFloatND\"\n    Type \"ExtensionArray\" is not assignable to type \"ToFloatND\"\n      \"ExtensionArray\" is incompatible with protocol \"_CanArrayND[floating_co]\"\n        \"__array__\" is not present\n      \"ExtensionArray\" is incompatible with protocol \"SequenceND[float | _CanArray[floating_co]]\"\n        \"__reversed__\" is not present\n        \"count\" is not present\n        \"index\" is not present\n ...", + "message": "Argument of type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" cannot be assigned to parameter \"a\" of type \"ToFloatND\" in function \"skew\"\n  Type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" is not assignable to type \"ToFloatND\"\n    Type \"ExtensionArray\" is not assignable to type \"ToFloatND\"\n      \"ExtensionArray\" is incompatible with protocol \"_CanArrayND[floating_co]\"\n        \"__array__\" is not present\n      \"ExtensionArray\" is incompatible with protocol \"SequenceND[py_float | _CanArray[floating_co]]\"\n        \"__reversed__\" is not present\n        \"count\" is not present\n        \"index\" is not present\n ...", "rule": "reportArgumentType", "severity": "error", "startCharacter": 34, @@ -395,7 +425,7 @@ "endCharacter": 42, "endLine": 2818, "file": "ReforceXY/reward_space_analysis/reward_space_analysis.py", - "message": "Argument of type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" cannot be assigned to parameter \"a\" of type \"ToFloatND\" in function \"kurtosis\"\n  Type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" is not assignable to type \"ToFloatND\"\n    Type \"ExtensionArray\" is not assignable to type \"ToFloatND\"\n      \"ExtensionArray\" is incompatible with protocol \"_CanArrayND[floating_co]\"\n        \"__array__\" is not present\n      \"ExtensionArray\" is incompatible with protocol \"SequenceND[float | _CanArray[floating_co]]\"\n        \"__reversed__\" is not present\n        \"count\" is not present\n        \"index\" is not present\n ...", + "message": "Argument of type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" cannot be assigned to parameter \"a\" of type \"ToFloatND\" in function \"kurtosis\"\n  Type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" is not assignable to type \"ToFloatND\"\n    Type \"ExtensionArray\" is not assignable to type \"ToFloatND\"\n      \"ExtensionArray\" is incompatible with protocol \"_CanArrayND[floating_co]\"\n        \"__array__\" is not present\n      \"ExtensionArray\" is incompatible with protocol \"SequenceND[py_float | _CanArray[floating_co]]\"\n        \"__reversed__\" is not present\n        \"count\" is not present\n        \"index\" is not present\n ...", "rule": "reportArgumentType", "severity": "error", "startCharacter": 38, @@ -425,7 +455,7 @@ "endCharacter": 39, "endLine": 2834, "file": "ReforceXY/reward_space_analysis/reward_space_analysis.py", - "message": "Argument of type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" cannot be assigned to parameter \"x\" of type \"ToFloatND\" in function \"anderson\"\n  Type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" is not assignable to type \"ToFloatND\"\n    Type \"ExtensionArray\" is not assignable to type \"ToFloatND\"\n      \"ExtensionArray\" is incompatible with protocol \"_CanArrayND[floating_co]\"\n        \"__array__\" is not present\n      \"ExtensionArray\" is incompatible with protocol \"SequenceND[float | _CanArray[floating_co]]\"\n        \"__reversed__\" is not present\n        \"count\" is not present\n        \"index\" is not present\n ...", + "message": "Argument of type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" cannot be assigned to parameter \"x\" of type \"ToFloatND\" in function \"anderson\"\n  Type \"np_1darray[Any] | ExtensionArray | Categorical[object]\" is not assignable to type \"ToFloatND\"\n    Type \"ExtensionArray\" is not assignable to type \"ToFloatND\"\n      \"ExtensionArray\" is incompatible with protocol \"_CanArrayND[floating_co]\"\n        \"__array__\" is not present\n      \"ExtensionArray\" is incompatible with protocol \"SequenceND[py_float | _CanArray[floating_co]]\"\n        \"__reversed__\" is not present\n        \"count\" is not present\n        \"index\" is not present\n ...", "rule": "reportArgumentType", "severity": "error", "startCharacter": 35, @@ -965,7 +995,7 @@ "endCharacter": 12, "endLine": 3604, "file": "ReforceXY/user_data/freqaimodels/ReforceXY.py", - "message": "Method \"step\" overrides class \"Base5ActionRLEnv\" in an incompatible manner\n  Return type mismatch: base method returns type \"tuple[DataFrame, float, bool, Literal[False], dict[str, float]]\", override returns type \"tuple[NDArray[float32], float, bool, bool, dict[str, Any]]\"\n    \"tuple[NDArray[float32], float, bool, bool, dict[str, Any]]\" is not assignable to \"tuple[DataFrame, float, bool, Literal[False], dict[str, float]]\"\n      Tuple entry 1 is incorrect type\n        \"ndarray[_AnyShape, dtype[float32]]\" is not assignable to \"DataFrame\"", + "message": "Method \"step\" overrides class \"Base5ActionRLEnv\" in an incompatible manner\n  Return type mismatch: base method returns type \"tuple[DataFrame, float, bool, Literal[False], dict[str, Unknown]]\", override returns type \"tuple[NDArray[float32], float, bool, bool, dict[str, Any]]\"\n    \"tuple[NDArray[float32], float, bool, bool, dict[str, Any]]\" is not assignable to \"tuple[DataFrame, float, bool, Literal[False], dict[str, Unknown]]\"\n      Tuple entry 1 is incorrect type\n        \"ndarray[_AnyShape, dtype[float32]]\" is not assignable to \"DataFrame\"", "rule": "reportIncompatibleMethodOverride", "severity": "error", "startCharacter": 8, diff --git a/quickadapter/.basedpyright/diagnostics.json b/quickadapter/.basedpyright/diagnostics.json index 25c6729..51a92a0 100644 --- a/quickadapter/.basedpyright/diagnostics.json +++ b/quickadapter/.basedpyright/diagnostics.json @@ -925,7 +925,7 @@ "endCharacter": 68, "endLine": 3601, "file": "quickadapter/user_data/freqaimodels/QuickAdapterRegressorV3.py", - "message": "Type \"Incomplete | NDArray[floating[Any]] | floating[Any] | NDArray[float64]\" is not assignable to return type \"NDArray[floating[Any]]\"\n  Type \"Incomplete | NDArray[floating[Any]] | floating[Any] | NDArray[float64]\" is not assignable to type \"NDArray[floating[Any]]\"\n    \"floating[Any]\" is not assignable to \"ndarray[_AnyShape, dtype[floating[Any]]]\"", + "message": "Type \"floating[Any] | NDArray[float64]\" is not assignable to return type \"NDArray[floating[Any]]\"\n  Type \"floating[Any] | NDArray[float64]\" is not assignable to type \"NDArray[floating[Any]]\"\n    \"floating[Any]\" is not assignable to \"ndarray[_AnyShape, dtype[floating[Any]]]\"", "rule": "reportReturnType", "severity": "error", "startCharacter": 15, @@ -951,16 +951,6 @@ "startCharacter": 23, "startLine": 3637 }, - { - "endCharacter": 27, - "endLine": 3705, - "file": "quickadapter/user_data/freqaimodels/QuickAdapterRegressorV3.py", - "message": "Argument of type \"Unknown | NDArray[floating[Any]] | None\" cannot be assigned to parameter \"weights\" of type \"NDArray[floating[Any]]\" in function \"_distance_to_reference\"\n  Type \"Unknown | NDArray[floating[Any]] | None\" is not assignable to type \"NDArray[floating[Any]]\"\n    \"None\" is not assignable to \"ndarray[_AnyShape, dtype[floating[Any]]]\"", - "rule": "reportArgumentType", - "severity": "error", - "startCharacter": 20, - "startLine": 3705 - }, { "endCharacter": 9, "endLine": 3748, @@ -981,26 +971,6 @@ "startCharacter": 27, "startLine": 3747 }, - { - "endCharacter": 27, - "endLine": 3796, - "file": "quickadapter/user_data/freqaimodels/QuickAdapterRegressorV3.py", - "message": "Argument of type \"Unknown | NDArray[floating[Any]] | None\" cannot be assigned to parameter \"weights\" of type \"NDArray[floating[Any]]\" in function \"_distance_to_reference\"\n  Type \"Unknown | NDArray[floating[Any]] | None\" is not assignable to type \"NDArray[floating[Any]]\"\n    \"None\" is not assignable to \"ndarray[_AnyShape, dtype[floating[Any]]]\"", - "rule": "reportArgumentType", - "severity": "error", - "startCharacter": 20, - "startLine": 3796 - }, - { - "endCharacter": 27, - "endLine": 3806, - "file": "quickadapter/user_data/freqaimodels/QuickAdapterRegressorV3.py", - "message": "Argument of type \"Unknown | NDArray[floating[Any]] | None\" cannot be assigned to parameter \"weights\" of type \"NDArray[floating[Any]]\" in function \"_distance_to_reference\"\n  Type \"Unknown | NDArray[floating[Any]] | None\" is not assignable to type \"NDArray[floating[Any]]\"\n    \"None\" is not assignable to \"ndarray[_AnyShape, dtype[floating[Any]]]\"", - "rule": "reportArgumentType", - "severity": "error", - "startCharacter": 20, - "startLine": 3806 - }, { "endCharacter": 9, "endLine": 3845, @@ -1021,16 +991,6 @@ "startCharacter": 19, "startLine": 3843 }, - { - "endCharacter": 82, - "endLine": 4051, - "file": "quickadapter/user_data/freqaimodels/QuickAdapterRegressorV3.py", - "message": "Type \"NDArray[floating[Any] | integer[Any]]\" is not assignable to return type \"NDArray[floating[Any]]\"\n  \"ndarray[_AnyShape, dtype[floating[Any] | integer[Any]]]\" is not assignable to \"ndarray[_AnyShape, dtype[floating[Any]]]\"\n    Type parameter \"_DTypeT_co@ndarray\" is covariant, but \"dtype[floating[Any] | integer[Any]]\" is not a subtype of \"dtype[floating[Any]]\"\n      \"dtype[floating[Any] | integer[Any]]\" is not assignable to \"dtype[floating[Any]]\"\n        Type parameter \"_ScalarT_co@dtype\" is covariant, but \"floating[Any] | integer[Any]\" is not a subtype of \"floating[Any]\"\n          Type \"floating[Any] | integer[Any]\" is not assignable to type \"floating[Any]\"", - "rule": "reportReturnType", - "severity": "error", - "startCharacter": 19, - "startLine": 4051 - }, { "endCharacter": 55, "endLine": 168, @@ -1571,16 +1531,6 @@ "startCharacter": 38, "startLine": 1088 }, - { - "endCharacter": 70, - "endLine": 1184, - "file": "quickadapter/user_data/strategies/QuickAdapterV3.py", - "message": "Type \"floating[Any]\" is not assignable to return type \"float | None\"\n  Type \"floating[Any]\" is not assignable to type \"float | None\"\n    \"floating[Any]\" is not assignable to \"float\"\n    \"floating[Any]\" is not assignable to \"None\"", - "rule": "reportReturnType", - "severity": "error", - "startCharacter": 19, - "startLine": 1184 - }, { "endCharacter": 73, "endLine": 1219, @@ -1991,46 +1941,6 @@ "startCharacter": 11, "startLine": 1655 }, - { - "endCharacter": 97, - "endLine": 2448, - "file": "quickadapter/user_data/strategies/Utils.py", - "message": "Type \"NDArray[floating[Any] | integer[Any]]\" is not assignable to return type \"NDArray[floating[Any]]\"\n  \"ndarray[_AnyShape, dtype[floating[Any] | integer[Any]]]\" is not assignable to \"ndarray[_AnyShape, dtype[floating[Any]]]\"\n    Type parameter \"_DTypeT_co@ndarray\" is covariant, but \"dtype[floating[Any] | integer[Any]]\" is not a subtype of \"dtype[floating[Any]]\"\n      \"dtype[floating[Any] | integer[Any]]\" is not assignable to \"dtype[floating[Any]]\"\n        Type parameter \"_ScalarT_co@dtype\" is covariant, but \"floating[Any] | integer[Any]\" is not a subtype of \"floating[Any]\"\n          Type \"floating[Any] | integer[Any]\" is not assignable to type \"floating[Any]\"", - "rule": "reportReturnType", - "severity": "error", - "startCharacter": 15, - "startLine": 2448 - }, - { - "endCharacter": 97, - "endLine": 2450, - "file": "quickadapter/user_data/strategies/Utils.py", - "message": "Type \"NDArray[floating[Any] | integer[Any]]\" is not assignable to return type \"NDArray[floating[Any]]\"\n  \"ndarray[_AnyShape, dtype[floating[Any] | integer[Any]]]\" is not assignable to \"ndarray[_AnyShape, dtype[floating[Any]]]\"\n    Type parameter \"_DTypeT_co@ndarray\" is covariant, but \"dtype[floating[Any] | integer[Any]]\" is not a subtype of \"dtype[floating[Any]]\"\n      \"dtype[floating[Any] | integer[Any]]\" is not assignable to \"dtype[floating[Any]]\"\n        Type parameter \"_ScalarT_co@dtype\" is covariant, but \"floating[Any] | integer[Any]\" is not a subtype of \"floating[Any]\"\n          Type \"floating[Any] | integer[Any]\" is not assignable to type \"floating[Any]\"", - "rule": "reportReturnType", - "severity": "error", - "startCharacter": 15, - "startLine": 2450 - }, - { - "endCharacter": 98, - "endLine": 2452, - "file": "quickadapter/user_data/strategies/Utils.py", - "message": "Type \"NDArray[floating[Any] | integer[Any]]\" is not assignable to return type \"NDArray[floating[Any]]\"\n  \"ndarray[_AnyShape, dtype[floating[Any] | integer[Any]]]\" is not assignable to \"ndarray[_AnyShape, dtype[floating[Any]]]\"\n    Type parameter \"_DTypeT_co@ndarray\" is covariant, but \"dtype[floating[Any] | integer[Any]]\" is not a subtype of \"dtype[floating[Any]]\"\n      \"dtype[floating[Any] | integer[Any]]\" is not assignable to \"dtype[floating[Any]]\"\n        Type parameter \"_ScalarT_co@dtype\" is covariant, but \"floating[Any] | integer[Any]\" is not a subtype of \"floating[Any]\"\n          Type \"floating[Any] | integer[Any]\" is not assignable to type \"floating[Any]\"", - "rule": "reportReturnType", - "severity": "error", - "startCharacter": 15, - "startLine": 2452 - }, - { - "endCharacter": 97, - "endLine": 2454, - "file": "quickadapter/user_data/strategies/Utils.py", - "message": "Type \"NDArray[floating[Any] | integer[Any]]\" is not assignable to return type \"NDArray[floating[Any]]\"\n  \"ndarray[_AnyShape, dtype[floating[Any] | integer[Any]]]\" is not assignable to \"ndarray[_AnyShape, dtype[floating[Any]]]\"\n    Type parameter \"_DTypeT_co@ndarray\" is covariant, but \"dtype[floating[Any] | integer[Any]]\" is not a subtype of \"dtype[floating[Any]]\"\n      \"dtype[floating[Any] | integer[Any]]\" is not assignable to \"dtype[floating[Any]]\"\n        Type parameter \"_ScalarT_co@dtype\" is covariant, but \"floating[Any] | integer[Any]\" is not a subtype of \"floating[Any]\"\n          Type \"floating[Any] | integer[Any]\" is not assignable to type \"floating[Any]\"", - "rule": "reportReturnType", - "severity": "error", - "startCharacter": 15, - "startLine": 2454 - }, { "endCharacter": 83, "endLine": 2508, @@ -2321,6 +2231,16 @@ "startCharacter": 31, "startLine": 4060 }, + { + "endCharacter": 92, + "endLine": 4419, + "file": "quickadapter/user_data/strategies/Utils.py", + "message": "Type \"bool_ | bool\" is not assignable to return type \"bool\"\n  Type \"bool_ | bool\" is not assignable to type \"bool\"\n    \"numpy.bool[builtins.bool]\" is not assignable to \"bool\"", + "rule": "reportReturnType", + "severity": "error", + "startCharacter": 15, + "startLine": 4419 + }, { "endCharacter": 85, "endLine": 4803,