[py] partial revert of
@@ -19,7 +19,7 @@ from abc import ABCMeta, abstractmethod
import os
from typing import Optional
from selenium.webdriver.common.utils import keys_to_typing
-from selenium.types import AnyKey
+# from selenium.types import AnyKey
class FileDetector(metaclass=ABCMeta):
@@ -29,7 +29,7 @@ class FileDetector(metaclass=ABCMeta):
"""
@abstractmethod
- def is_local_file(self, *keys: AnyKey) -> Optional[str]:
+ def is_local_file(self, *keys) -> Optional[str]:
return None
@@ -38,7 +38,7 @@ class UselessFileDetector(FileDetector):
A file detector that never finds anything.
"""
- def is_local_file(self, *keys: AnyKey) -> Optional[str]:
+ def is_local_file(self, *keys) -> Optional[str]:
return None
@@ -47,7 +47,7 @@ class LocalFileDetector(FileDetector):
Detects files on the local disk.
"""
- def is_local_file(self, *keys: AnyKey) -> Optional[str]:
+ def is_local_file(self, *keys) -> Optional[str]:
file_path = ''.join(keys_to_typing(keys))
if not file_path:
