B
    %‰ËdÚ  ã               @   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   ú]/work/yifan.wang/ringdown/master-ringdown-env/lib/python3.7/site-packages/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   