Skip to content

Commit bb14567

Browse files
committed
Fix lint issues
1 parent 0a516cf commit bb14567

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

src/timecode/timecode.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,8 @@ def __eq__(self, other: int | str | Timecode | object) -> bool:
610610
"""
611611
if isinstance(other, Timecode):
612612
if self.framerate != other.framerate:
613-
raise ValueError("'==' not supported between instances of 'Timecode' with different framerates")
613+
raise ValueError("'==' not supported between instances of "
614+
"'Timecode' with different framerates")
614615
return self.frames == other.frames
615616
if isinstance(other, str):
616617
new_tc = Timecode(self.framerate, other)
@@ -634,7 +635,8 @@ def __ge__(self, other: int | str | Timecode | object) -> bool:
634635
"""
635636
if isinstance(other, Timecode):
636637
if self.framerate != other.framerate:
637-
raise ValueError("'>=' not supported between instances of 'Timecode' with different framerates")
638+
raise ValueError("'>=' not supported between instances of "
639+
"'Timecode' with different framerates")
638640
return self.frames >= other.frames
639641
if isinstance(other, str):
640642
new_tc = Timecode(self.framerate, other)
@@ -657,7 +659,8 @@ def __gt__(self, other: int | str | Timecode) -> bool:
657659
"""
658660
if isinstance(other, Timecode):
659661
if self.framerate != other.framerate:
660-
raise ValueError("'>' not supported between instances of 'Timecode' with different framerates")
662+
raise ValueError("'>' not supported between instances of "
663+
"'Timecode' with different framerates")
661664
return self.frames > other.frames
662665
if isinstance(other, str):
663666
new_tc = Timecode(self.framerate, other)
@@ -680,9 +683,10 @@ def __le__(self, other: int | str | Timecode | object) -> bool:
680683
"""
681684
if isinstance(other, Timecode):
682685
if self.framerate != other.framerate:
683-
raise ValueError("'<=' not supported between instances of 'Timecode' with different framerates")
686+
raise ValueError("'<=' not supported between instances of "
687+
"'Timecode' with different framerates")
684688
return self.frames <= other.frames
685-
elif isinstance(other, str):
689+
if isinstance(other, str):
686690
new_tc = Timecode(self.framerate, other)
687691
return self.frames <= new_tc.frames
688692
if isinstance(other, int):
@@ -703,7 +707,8 @@ def __lt__(self, other: int | str | Timecode) -> bool:
703707
"""
704708
if isinstance(other, Timecode):
705709
if self.framerate != other.framerate:
706-
raise ValueError("'<' not supported between instances of 'Timecode' with different framerates".format())
710+
raise ValueError("'<' not supported between instances of "
711+
"'Timecode' with different framerates")
707712
return self.framerate == other.framerate and self.frames < other.frames
708713
if isinstance(other, str):
709714
new_tc = Timecode(self.framerate, other)

0 commit comments

Comments
 (0)