
    ,h                         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 d dl	m
Z
 d dlmZ  G d d	e
      Z G d de      Z G d de      Zy)    )ABCMeta)abstractmethod)suppress)Path)Optional)AnyKey)keys_to_typingc                   0    e Zd ZdZededee   fd       Zy)FileDetectorzSUsed for identifying whether a sequence of chars represents the path to
    a file.keysreturnc                     t         N)NotImplementedErrorselfr   s     i/var/www/html/Resume-Scraper/venv/lib/python3.12/site-packages/selenium/webdriver/remote/file_detector.pyis_local_filezFileDetector.is_local_file    s    !!    N)	__name__
__module____qualname____doc__r   r   r   strr    r   r   r   r      s-     "6 "hsm " "r   r   )	metaclassc                   &    e Zd ZdZdedee   fdZy)UselessFileDetectorz*A file detector that never finds anything.r   r   c                      y r   r   r   s     r   r   z!UselessFileDetector.is_local_file(   s    r   Nr   r   r   r   r   r   r   r   r   r   r   r   r   %   s    46 hsm r   r   c                   &    e Zd ZdZdedee   fdZy)LocalFileDetectorz Detects files on the local disk.r   r   c                     dj                  t        |            }t        t              5  t	        |      j                         r|cd d d        S 	 d d d        y # 1 sw Y   y xY w)N )joinr	   r   OSErrorr   is_file)r   r   	file_paths      r   r   zLocalFileDetector.is_local_file/   sW    GGN401	g 	!I&&( 	! 	!(	! 	! s   AA"Nr    r   r   r   r"   r"   ,   s    *6 hsm r   r"   N)abcr   r   
contextlibr   pathlibr   typingr   selenium.typesr   selenium.webdriver.common.utilsr	   r   r   r"   r   r   r   <module>r/      s@   $      ! :"W ", 	 	r   