a
    `ºDf¿  ã                   @   s`   d gZ ddlmZ ddlZejdkr2ddlmZ nddlmZ ddlm	Z	 G dd „ d e	j
ƒZdS )	ÚBlobé    )Ú
guess_typeN)é   é   )ÚLiteralé   )Úbasec                   @   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 object.

    See :manpage:`gitglossary(7)` on "blob":
    https://git-scm.com/docs/gitglossary#def_blob_object
    z
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
   ú]/nfs/NAS7/SABIOD/METHODE/ermites/ermites_venv/lib/python3.9/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   
)Ú__all__Ú	mimetypesr   ÚsysÚversion_infoÚtypingr   Ztyping_extensionsÚ r   ZIndexObjectr   r
   r
   r
   r   Ú<module>   s   
