o
    N,h                     @   s   d dl mZmZ d dlmZ d dlm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abstractmethod)suppress)Path)Optional)AnyKey)keys_to_typingc                   @   s*   e Zd ZdZededee fddZdS )FileDetectorzSUsed for identifying whether a sequence of chars represents the path to
    a file.keysreturnc                 G   s   t N)NotImplementedErrorselfr
    r   s/var/www/www-root/data/www/bot.pdev.uz/venv/lib/python3.10/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                   @   &   e Zd ZdZdedee fddZdS )UselessFileDetectorz*A file detector that never finds anything.r
   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   $       r   c                   @   r   )LocalFileDetectorz Detects files on the local disk.r
   r   c                 G   sZ   d t|}tt t| r|W  d    S W d    d S 1 s&w   Y  d S )N )joinr   r   OSErrorr   is_file)r   r
   	file_pathr   r   r   r   .   s   

zLocalFileDetector.is_local_fileNr   r   r   r   r   r   +   r   r   N)abcr   r   
contextlibr   pathlibr   typingr   selenium.typesr   selenium.webdriver.common.utilsr   r	   r   r   r   r   r   r   <module>   s   	