File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
py/selenium/webdriver/remote Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 19
19
import os
20
20
from typing import Optional
21
21
from selenium .webdriver .common .utils import keys_to_typing
22
- from selenium .types import AnyKey
22
+ # from selenium.types import AnyKey
23
23
24
24
25
25
class FileDetector (metaclass = ABCMeta ):
@@ -29,7 +29,7 @@ class FileDetector(metaclass=ABCMeta):
29
29
"""
30
30
31
31
@abstractmethod
32
- def is_local_file (self , * keys : AnyKey ) -> Optional [str ]:
32
+ def is_local_file (self , * keys ) -> Optional [str ]:
33
33
return None
34
34
35
35
@@ -38,7 +38,7 @@ class UselessFileDetector(FileDetector):
38
38
A file detector that never finds anything.
39
39
"""
40
40
41
- def is_local_file (self , * keys : AnyKey ) -> Optional [str ]:
41
+ def is_local_file (self , * keys ) -> Optional [str ]:
42
42
return None
43
43
44
44
@@ -47,7 +47,7 @@ class LocalFileDetector(FileDetector):
47
47
Detects files on the local disk.
48
48
"""
49
49
50
- def is_local_file (self , * keys : AnyKey ) -> Optional [str ]:
50
+ def is_local_file (self , * keys ) -> Optional [str ]:
51
51
file_path = '' .join (keys_to_typing (keys ))
52
52
53
53
if not file_path :
You can’t perform that action at this time.
0 commit comments