Skip to content

Commit 34fb9ac

Browse files
Merge pull request #2165 from VWS-Python/rm-isinstance
Rework to avoid an isinstance check
2 parents 2504c66 + b316042 commit 34fb9ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mock_vws/_services_validators/active_flag_validators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def validate_active_flag(request_body: bytes) -> None:
3131

3232
active_flag = json.loads(request_text).get("active_flag")
3333

34-
if active_flag is None or isinstance(active_flag, bool):
34+
if active_flag in {True, False, None}:
3535
return
3636

3737
_LOGGER.warning(

0 commit comments

Comments
 (0)