You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But Dialyzer is complaining about Explorer.Series.cast/2:
The function call will not succeed.
Explorer.Series.cast(:infinity | :nan | :neg_infinity | nil | float(), :integer)
will never return since the success typing is:
(%Explorer.Series{:dtype => _, _ => _}, any()) :: any()
and the contract is
(series :: t(), dtype :: dtype() | dtype_alias()) :: t()
The text was updated successfully, but these errors were encountered:
@viniciussbs That's because mean may return a lazy series in the context of a Query. If you want to send a PR, please take a look the specs from the size/1 function (inside the Series module) - we want to do the same: @spec mean(series :: Series.t()) :: float() | non_finite() | nil | lazy_t().
This is valid for most of the series operations that can return a scalar
value (in general a float). Inside the context of a query - like in
`mutate` -, this will return a lazy series before being collected.
Closes#1038
This is valid for most of the series operations that can return a scalar
value (in general a float). Inside the context of a query - like in
`mutate` -, this will return a lazy series before being collected.
Closes#1038
Hey! I guess we have another typespec issue.
This is working:
But Dialyzer is complaining about
Explorer.Series.cast/2
:The text was updated successfully, but these errors were encountered: