File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ __pycache__
12.coverage
23.DS_Store
34.pytest_cache /*
45.ruff_cache /*
56.venv /*
7+ .vscode /*
68* .egg-info
79* .egg-info /*
810* .pyc
@@ -14,5 +16,4 @@ docs/doctrees/*
1416docs /html /*
1517docs /latex /*
1618docs /source /generated /*
17- include /*
18- __pycache__
19+ include /*
Original file line number Diff line number Diff line change 33# Standard Library Imports
44from __future__ import annotations
55
6+ import math
67import sys
78from contextlib import suppress
89from typing import TYPE_CHECKING , overload
@@ -880,14 +881,16 @@ def frame_number(self) -> int:
880881 """
881882 return self .frames - 1
882883
884+
883885 @property
884886 def float (self ) -> float :
885887 """Return the seconds as float.
886888
887889 Returns:
888890 float: The seconds as float.
889891 """
890- return float (self .frames ) / float (self ._int_framerate )
892+ time_value = float (self .frames ) / float (self ._int_framerate )
893+ return math .nextafter (time_value , math .inf )
891894
892895
893896class TimecodeError (Exception ):
You can’t perform that action at this time.
0 commit comments