
    LMh                     |    d dl Z d dlmZmZmZ d dlmZ d dlmZ  ede          Z	 G d dee	                   Z
dS )	    N)GenericOptionalTypeVar)ResourceHandle)register_datasource_accessT)boundc                   "   e Zd ZdZej        Z	 ddddedee	         dee
         dee	ee         f         fd	Zej        	 ddddedee	         dee
         dee	ee         f         fd
            Zej        ddedee	         de
fd            ZdS )Resolverz;Resolver base class: all resolvers inherit from this class.NFforce_downloadhandlepathr   returnc                `    |                      |||          \  }}t          ||           ||fS ).  Resolves a handle into a path with the requested file(s) and the resource's version number.

        Args:
            handle: (T) the ResourceHandle to resolve.
            path: (string) Optional path to a file within the resource.
            force_download: (bool) Optional flag to force download, even if it's cached.

        Returns:
            A tuple of: (string representing the path, version number of resolved datasource if present)
            Some cases where version number might be missing: Competition datasource, API-based models.
        r   )_resolver   )selfr   r   r   versions        R/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/kagglehub/resolver.py__call__zResolver.__call__   s;     fd>RRg 	#67333W}    c                    dS )r   N )r   r   r   r   s       r   r   zResolver._resolve$   s	     	r   c                     dS )zBReturns whether the current environment supports this handle/path.Nr   )r   r   r   s      r   is_supportedzResolver.is_supported5   s	     	r   )N)__name__
__module____qualname____doc__abcABCMeta__metaclass__r   r   strbooltupleintr   abstractmethodr   r   r   r   r   r   r   
   s5       EEKM 04Y^  '}HPQU	sHSM!	"   * 	/3Y^  '}HPQU	sHSM!	"     	 1 HSM T      r   r   )r!   typingr   r   r   kagglehub.handler   kagglehub.trackerr   r   r   r   r   r   <module>r,      s    



 - - - - - - - - - - + + + + + + 8 8 8 8 8 8GC~&&&. . . . .wqz . . . . .r   