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
refactor: return NotImplemented instead of raising NotImplementedError
Special methods corresponding to numeric operators, rich comparison operators, and the `__length_hint__` method should return `NotImplemented` when the operation is not supported. These methods should not raise `NotImplementedError` as callers don't expect it and won't catch this exception.
0 commit comments