remove type checks. prefer duck typing

This commit is contained in:
onyx-and-iris
2022-07-04 16:02:56 +01:00
parent 7d8a1ce1f5
commit 1b75d53cfb
7 changed files with 2 additions and 44 deletions

View File

@@ -53,8 +53,6 @@ class Recorder(IRemote):
raise VMError("File full directory must be a raw string")
def set_loop(self, val: bool):
if not isinstance(val, bool) and val not in (0, 1):
raise VMError("Error True or False expected")
self.setter("mode.loop", 1 if val else 0)
loop = property(fset=set_loop)