If count is greater than 1, add it to the base offset string
(base: str, count: float)
| 236 | |
| 237 | |
| 238 | def _maybe_add_count(base: str, count: float): |
| 239 | """If count is greater than 1, add it to the base offset string""" |
| 240 | if count != 1: |
| 241 | assert count == int(count) |
| 242 | count = int(count) |
| 243 | return f"{count}{base}" |
| 244 | else: |
| 245 | return base |
| 246 | |
| 247 | |
| 248 | def month_anchor_check(dates): |
no outgoing calls
no test coverage detected
searching dependent graphs…