a
    .c                     @   sr   d dl mZmZ d dlZd dlmZ d dlmZ d dlm	Z	 G dd dedZ
G d	d
 d
e
ZG dd de
ZdS )    )ABCMetaabstractmethodN)Optional)AnyKey)keys_to_typingc                   @   s(   e Zd ZdZeeee dddZdS )FileDetectorz]
    Used for identifying whether a sequence of chars represents the path to a
    file.
    keysreturnc                 G   s   t d S N)NotImplementedErrorselfr	    r   a/var/www/brookimports/venv/lib/python3.9/site-packages/selenium/webdriver/remote/file_detector.pyis_local_file   s    zFileDetector.is_local_fileN)	__name__
__module____qualname____doc__r   r   r   strr   r   r   r   r   r      s   r   )	metaclassc                   @   s$   e Zd ZdZeee dddZdS )UselessFileDetectorz4
    A file detector that never finds anything.
    r   c                 G   s   d S r   r   r   r   r   r   r   )   s    z!UselessFileDetector.is_local_fileNr   r   r   r   r   r   r   r   r   r   r   r   r   $   s   r   c                   @   s$   e Zd ZdZeee dddZdS )LocalFileDetectorz*
    Detects files on the local disk.
    r   c                 G   sD   d t|}|sd S ztj|r*|W S W n ty>   Y n0 d S )N )joinr   ospathisfile	Exception)r   r	   	file_pathr   r   r   r   2   s    
zLocalFileDetector.is_local_fileNr   r   r   r   r   r   -   s   r   )abcr   r   r   typingr   Zselenium.typesr   Zselenium.webdriver.common.utilsr   r   r   r   r   r   r   r   <module>   s   	