
    Pi                     x    d dl Z d dl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TypeVar)ResourceHandle)register_datasource_accessT)boundc                       e Zd ZdZej        Z	 ddddededz  de	dz  de
eedz  f         fd	Zej        	 ddddededz  de	dz  de
eedz  f         fd
            Zej        ddededz  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        f/home/jaya/work/projects/VOICE-AGENT/VIET/agent-env/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   strbooltupleintr   abstractmethodr   r   r   r   r   r
   r
   
   s1       EEKM -1SX  "TzEID[	sC$J	   * 	,0SX  "TzEID[	sC$J	     	 1 C$J $      r   r
   )
r    typingr   r   kagglehub.handler   kagglehub.trackerr   r   r
   r   r   r   <module>r+      s    



 # # # # # # # # + + + + + + 8 8 8 8 8 8GC~&&&. . . . .wqz . . . . .r   