Skip to content

Commit bbd201b

Browse files
BeyondEvilAutomatedTester
authored andcommitted
Fix flake8 issues (#3628)
1 parent dc76b17 commit bbd201b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

py/selenium/webdriver/common/actions/pointer_input.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def __init__(self, type_, name):
2929
self.name = name
3030

3131
def create_pointer_move(self, duration=DEFAULT_MOVE_DURATION, x=None, y=None, origin=None):
32-
action = {"type": "pointerMove","duration": duration}
32+
action = dict(type="pointerMove", duration=duration)
3333
action["x"] = x
3434
action["y"] = y
3535
if isinstance(origin, WebElement):
@@ -40,10 +40,10 @@ def create_pointer_move(self, duration=DEFAULT_MOVE_DURATION, x=None, y=None, or
4040
self.add_action(action)
4141

4242
def create_pointer_down(self, button):
43-
self.add_action({"type": "pointerDown", "duration": 0, "button":button})
43+
self.add_action({"type": "pointerDown", "duration": 0, "button": button})
4444

4545
def create_pointer_up(self, button):
46-
self.add_action({"type": "pointerUp", "duration": 0, "button":button})
46+
self.add_action({"type": "pointerUp", "duration": 0, "button": button})
4747

4848
def create_pointer_cancel(self):
4949
self.add_action({"type": "pointerCancel"})

0 commit comments

Comments
 (0)