Skip to content

Commit

Permalink
[#53] Removed the class variable-esque type definitions from the `Tim…
Browse files Browse the repository at this point in the history
…ecode` class.
  • Loading branch information
eoyilmaz committed Jul 8, 2024
1 parent 9377b6b commit 8f3c39d
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions timecode/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,7 @@ class Timecode(object):
force_non_drop_frame (bool): If True, uses Non-Dropframe calculation for 29.97
or 59.94 only. Has no meaning for any other framerate. It is False by
default.
"""
_framerate: Union[str, int, float, Fraction]
_int_framerate: int
_frames: int
"""

def __init__(
self,
Expand All @@ -86,11 +83,10 @@ def __init__(

self.ms_frame = False
self.fraction_frame = False
self._int_framerate = None # type: ignore
self._framerate = None # type: ignore
self._int_framerate : Union[None, int] = None
self._framerate : Union[None, str, int, float, Fraction] = None
self.framerate = framerate # type: ignore

self._frames = None # type: ignore
self._frames : Union[None, int] = None

# attribute override order
# start_timecode > frames > start_seconds
Expand Down

0 comments on commit 8f3c39d

Please sign in to comment.