(self)
| 782 | |
| 783 | @property |
| 784 | def is_leap_year(self): |
| 785 | if TYPE_CHECKING: |
| 786 | import cftime |
| 787 | else: |
| 788 | cftime = attempt_import("cftime") |
| 789 | func = np.vectorize(cftime.is_leap_year) |
| 790 | return func(self.year, calendar=self.calendar) |
| 791 | |
| 792 | |
| 793 | def _parse_array_of_cftime_strings(strings, date_type): |
nothing calls this directly
no test coverage detected