Type guard: True (and narrows `other` to `FrameTimecode`) iff both timecodes have a known framerate, in which case frame-based comparison is exact and preferred over float seconds.
(other: ty.Any, base: FrameTimecode)
| 775 | |
| 776 | |
| 777 | def _compare_as_fixed(other: ty.Any, base: FrameTimecode) -> ty.TypeGuard[FrameTimecode]: |
| 778 | """Type guard: True (and narrows `other` to `FrameTimecode`) iff both timecodes have a known |
| 779 | framerate, in which case frame-based comparison is exact and preferred over float seconds.""" |
| 780 | return base._rate is not None and isinstance(other, FrameTimecode) and other._rate is not None |