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
{{ message }}
Repository navigation
assert(Not)AlmostEqual(s) specifies the type as float #7891
assert(Not)AlmostEqual(s) specifies the type as float or datetime.datetime, when in practice it works also with other types that support subtraction, absolute value, rounding and comparison with zero, such as Fraction or Decimal.
This should be fixed (using TypeVar and a Protocol) to prevent Mypy errors in tests that use these types.
Activity
srittau commentedon May 20, 2022
Seems reasonable. Any PRs welcome!