Add a date to a timedelta.
(self, other)
| 1210 | # Computations |
| 1211 | |
| 1212 | def __add__(self, other): |
| 1213 | "Add a date to a timedelta." |
| 1214 | if isinstance(other, timedelta): |
| 1215 | o = self.toordinal() + other.days |
| 1216 | if 0 < o <= _MAXORDINAL: |
| 1217 | return type(self).fromordinal(o) |
| 1218 | raise OverflowError("result out of range") |
| 1219 | return NotImplemented |
| 1220 | |
| 1221 | __radd__ = __add__ |
| 1222 |
nothing calls this directly
no test coverage detected