Skip to content

Commit 4080d29

Browse files
authored
Remove comments
1 parent 609a417 commit 4080d29

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class KeyActions(Interaction):
2828
def __init__(self, source: KeyInput | PointerInput | WheelInput | None = None) -> None:
2929
if source is None:
3030
source = KeyInput(KEY)
31-
self.input_source = source # Store the actual input object
31+
self.input_source = source
3232

3333
# Determine the correct source type string based on the input object
3434
if isinstance(source, KeyInput):
@@ -38,9 +38,9 @@ def __init__(self, source: KeyInput | PointerInput | WheelInput | None = None) -
3838
elif isinstance(source, WheelInput):
3939
source_type = WHEEL
4040
else:
41-
source_type = KEY # fallback
41+
source_type = KEY
4242

43-
super().__init__(source_type) # Pass string to parent
43+
super().__init__(source_type)
4444

4545
def key_down(self, letter: str) -> KeyActions:
4646
return self._key_action("create_key_down", letter)
@@ -60,6 +60,6 @@ def send_keys(self, text: str | list) -> KeyActions:
6060
return self
6161

6262
def _key_action(self, action: str, letter) -> KeyActions:
63-
meth = getattr(self.input_source, action) # Use input_source, not source
63+
meth = getattr(self.input_source, action)
6464
meth(letter)
6565
return self

0 commit comments

Comments
 (0)