Add a date to a timedelta.
(self, other)
| 1137 | # Computations |
| 1138 | |
| 1139 | def __add__(self, other): |
| 1140 | "Add a date to a timedelta." |
| 1141 | if isinstance(other, timedelta): |
| 1142 | o = self.toordinal() + other.days |
| 1143 | if 0 < o <= _MAXORDINAL: |
| 1144 | return type(self).fromordinal(o) |
| 1145 | raise OverflowError("result out of range") |
| 1146 | return NotImplemented |
| 1147 | |
| 1148 | __radd__ = __add__ |
| 1149 |
nothing calls this directly
no test coverage detected