Skip to content

Commit 49f2f76

Browse files
Delta456harsha509
andauthored
fix type errors for input_device and file_detector (#14459)
Co-authored-by: Sri Harsha <[email protected]>
1 parent 6d942fc commit 49f2f76

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

py/selenium/webdriver/common/actions/input_device.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ def add_action(self, action: Any) -> None:
3535
def clear_actions(self) -> None:
3636
self.actions = []
3737

38-
def create_pause(self, duration: int = 0) -> None:
38+
def create_pause(self, duration: float = 0) -> None:
3939
pass

py/selenium/webdriver/remote/file_detector.py

+1
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,4 @@ def is_local_file(self, *keys: AnyKey) -> Optional[str]:
5050
with suppress(OSError):
5151
if Path(file_path).is_file():
5252
return file_path
53+
return None

0 commit comments

Comments
 (0)