Skip to content

Commit 79007b2

Browse files
committed
Lint
1 parent dd4c1ab commit 79007b2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

zendriver/core/keys.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,10 @@ def to_cdp_events(
316316
)
317317

318318
case KeyPressEvent.CHAR:
319-
if not isinstance(self.key, str) and self.key not in self.SPECIAL_KEY_CHAR_MAP.keys():
319+
if (
320+
not isinstance(self.key, str)
321+
and self.key not in self.SPECIAL_KEY_CHAR_MAP.keys()
322+
):
320323
raise ValueError(
321324
f"Key '{self.key}' is not supported for CHAR event type. Only str characters are allowed"
322325
)

0 commit comments

Comments
 (0)