Fixed some bugs picked up in flake8

This commit is contained in:
Jamie Hardt
2022-11-13 17:25:56 -08:00
committed by GitHub
parent bd196f2dbf
commit 284267c9c0
2 changed files with 5 additions and 5 deletions

View File

@@ -98,8 +98,8 @@ class ChannelMap:
self.set_audio_channel(int( matchresult.group(1)), True ) self.set_audio_channel(int( matchresult.group(1)), True )
def _append_ext(self, audio_ext): def _append_ext(self, audio_ext):
self.a3 = ext.audio3 self.a3 = audio_ext.audio3
self.a4 = ext.audio4 self.a4 = audio_ext.audio4
def __or__(self, other): def __or__(self, other):
""" """

View File

@@ -70,12 +70,12 @@ class Transition:
@property @property
def key_background(self): def key_background(self):
"`True` if this edit is a key background." "`True` if this edit is a key background."
return self.transition == KeyBackground return self.transition == Transition.KeyBackground
@property @property
def key_foreground(self): def key_foreground(self):
"`True` if this edit is a key foreground." "`True` if this edit is a key foreground."
return self.transition == Key return self.transition == Transition.Key
@property @property
def key_out(self): def key_out(self):
@@ -83,4 +83,4 @@ class Transition:
`True` if this edit is a key out. This material will removed from `True` if this edit is a key out. This material will removed from
the key foreground and replaced with the key background. the key foreground and replaced with the key background.
""" """
return self.transition == KeyOut return self.transition == Transition.KeyOut