Skip to content

Commit b28edd9

Browse files
committed
Implement AI code review suggestion
1 parent a4054c7 commit b28edd9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

py/selenium/webdriver/common/actions/key_actions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
class KeyActions(Interaction):
2828
def __init__(self, source: KeyInput | PointerInput | WheelInput | None = None) -> None:
29-
if not source:
29+
if source is None:
3030
source = KeyInput(KEY)
3131
self.source = source
3232
super().__init__(source)

py/selenium/webdriver/common/actions/pointer_actions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def __init__(self, source: Optional[PointerInput] = None, duration: int = 250):
3131
- source: PointerInput instance
3232
- duration: override the default 250 msecs of DEFAULT_MOVE_DURATION in source
3333
"""
34-
if not source:
34+
if source is None:
3535
source = PointerInput(interaction.POINTER_MOUSE, "mouse")
3636
self.source = source
3737
self._duration = duration

py/selenium/webdriver/common/actions/wheel_actions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
class WheelActions(Interaction):
2525
def __init__(self, source: Optional[WheelInput] = None):
26-
if not source:
26+
if source is None:
2727
source = WheelInput("wheel")
2828
super().__init__(source)
2929

0 commit comments

Comments
 (0)