U
    楡c                     @   s>   d dl mZ ddlmZ d dlmZ dZG dd dejZdS )	    )
guess_type   )base)Literal)Blobc                   @   sH   e Zd ZU dZdZdZed ed< dZdZ	dZ
dZeed	d
dZdS )r   z%A Blob encapsulates a git blob objectz
text/plainZblobtypei  i  i    )returnc                 C   s*   d}| j rtt| j }|r$|d p(| jS )z
        :return: String describing the mime type of this file (based on the filename)
        :note: Defaults to 'text/plain' in case the actual file type is unknown.Nr   )pathr   strDEFAULT_MIME_TYPE)selfZguessesr   r   4/tmp/pip-unpacked-wheel-_pbxsds5/git/objects/blob.py	mime_type   s    zBlob.mime_typeN)__name__
__module____qualname____doc__r   r   r   __annotations__Zexecutable_modeZ	file_modeZ	link_mode	__slots__propertyr   r   r   r   r   r   r      s   
r   N)		mimetypesr    r   Z	git.typesr   __all__ZIndexObjectr   r   r   r   r   <module>   s   