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
Not sure if this bug is proper to be posted here or in the typing module... If this is the wrong place, please, point me to the right one.
Current type hints for parameters a and b of np.allclose are Union[ndarray, Iterable], but should be changed to Union[ndarray, Iterable, float] since the function supports this type of usage.
np.isclose suffers from a similar issue: even though is quite rare for that function to be used with two floats, it would be more precise to mark the type of a and b as Union[ndarray, Iterable, float].
The text was updated successfully, but these errors were encountered:
Not sure if this bug is proper to be posted here or in the typing module... If this is the wrong place, please, point me to the right one.
Current type hints for parameters
a
andb
ofnp.allclose
areUnion[ndarray, Iterable]
, but should be changed toUnion[ndarray, Iterable, float]
since the function supports this type of usage.np.isclose
suffers from a similar issue: even though is quite rare for that function to be used with two floats, it would be more precise to mark the type ofa
andb
asUnion[ndarray, Iterable, float]
.The text was updated successfully, but these errors were encountered: