o
    *Î®c‡  ã                   @   s   G d d„ de ƒZdS )c                   @   sH   e Zd ZdZdd„ Zedd„ ƒZedd„ ƒZdd	„ Zd
d„ Z	dd„ Z
dS )ÚTypezŒ
    Represents the file type object inherited by
    specific file type matchers.
    Provides convenient accessor and helper methods.
    c                 C   s   || _ || _d S ©N)Ú_Type__mimeÚ_Type__extension)ÚselfÚmimeÚ	extension© r   ú:/tmp/pip-target-vg8gfxp4/lib/python/filetype/types/base.pyÚ__init__
   s   
zType.__init__c                 C   ó   | j S r   ©r   ©r   r   r   r	   r      ó   z	Type.mimec                 C   r   r   ©r   r   r   r   r	   r      r   zType.extensionc                 C   ó
   | j |u S r   r   )r   r   r   r   r	   Úis_extension   ó   
zType.is_extensionc                 C   r   r   r   )r   r   r   r   r	   Úis_mime   r   zType.is_mimec                 C   s   t ‚r   )ÚNotImplementedError)r   Úbufr   r   r	   Úmatch   s   z
Type.matchN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r
   Úpropertyr   r   r   r   r   r   r   r   r	   r      s    

r   N)Úobjectr   r   r   r   r	   Ú<module>   s   