Skip to content

Commit 16a750d

Browse files
committed
chore(ruff): suppress combine branches with one or expression
I want to keep the comment on datetime and expressing the whole thing as on big or statement would prevent that. Also it reads better since I can't get formatting of multiple or statemnts to occur one element per line. if (a or b or c or ...): wants to be reformated to (a or b or ...)
1 parent 138fd59 commit 16a750d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

roundup/rest.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2645,15 +2645,15 @@ def format_dispatch_output(self, accept_mime_type, output,
26452645
import collections
26462646
for key, val in output['error'].items():
26472647
if isinstance(val, numbers.Number) or type(val) in \
2648-
(str, unicode):
2648+
(str, unicode): # noqa: SIM114
26492649
pass
2650-
elif hasattr(val, 'isoformat'): # datetime
2650+
elif hasattr(val, 'isoformat'): # datetime # noqa: SIM114
26512651
pass
2652-
elif type(val) is bool:
2652+
elif type(val) is bool: # noqa: SIM114
26532653
pass
2654-
elif isinstance(val, dict):
2654+
elif isinstance(val, dict): # noqa: SIM114
26552655
pass
2656-
elif isinstance(val, collections.Iterable):
2656+
elif isinstance(val, collections.Iterable): # noqa: SIM114
26572657
pass
26582658
elif val is None:
26592659
pass

0 commit comments

Comments
 (0)