Skip to content

Commit c9a18b9

Browse files
[py] partial revert of #9606
1 parent 2c94ad3 commit c9a18b9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

py/selenium/webdriver/remote/file_detector.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import os
2020
from typing import Optional
2121
from selenium.webdriver.common.utils import keys_to_typing
22-
from selenium.types import AnyKey
22+
# from selenium.types import AnyKey
2323

2424

2525
class FileDetector(metaclass=ABCMeta):
@@ -29,7 +29,7 @@ class FileDetector(metaclass=ABCMeta):
2929
"""
3030

3131
@abstractmethod
32-
def is_local_file(self, *keys: AnyKey) -> Optional[str]:
32+
def is_local_file(self, *keys) -> Optional[str]:
3333
return None
3434

3535

@@ -38,7 +38,7 @@ class UselessFileDetector(FileDetector):
3838
A file detector that never finds anything.
3939
"""
4040

41-
def is_local_file(self, *keys: AnyKey) -> Optional[str]:
41+
def is_local_file(self, *keys) -> Optional[str]:
4242
return None
4343

4444

@@ -47,7 +47,7 @@ class LocalFileDetector(FileDetector):
4747
Detects files on the local disk.
4848
"""
4949

50-
def is_local_file(self, *keys: AnyKey) -> Optional[str]:
50+
def is_local_file(self, *keys) -> Optional[str]:
5151
file_path = ''.join(keys_to_typing(keys))
5252

5353
if not file_path:

0 commit comments

Comments
 (0)