From 3711524f88e101bd48769bed8868304a7a7b973a Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Mon, 4 Jul 2022 16:22:25 +0100 Subject: [PATCH] remove type check, prefer duck typing --- vban_cmd/command.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/vban_cmd/command.py b/vban_cmd/command.py index 96af0ad..f1c7e08 100644 --- a/vban_cmd/command.py +++ b/vban_cmd/command.py @@ -35,15 +35,11 @@ class Command(IRemote): return "Command" def set_showvbanchat(self, val: bool): - if not isinstance(val, bool) and val not in (0, 1): - raise VMCMDErrors("showvbanchat is a boolean parameter") self.setter("DialogShow.VBANCHAT", 1 if val else 0) showvbanchat = property(fset=set_showvbanchat) def set_lock(self, val: bool): - if not isinstance(val, bool) and val not in (0, 1): - raise VMCMDErrors("lock is a boolean parameter") self.setter("lock", 1 if val else 0) lock = property(fset=set_lock)