o
    ﯪg                     @   s`   d gZ ddlmZ ddlZejdkrd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d	efd
dZdS )r   zA Blob encapsulates a git blob object.

    See :manpage:`gitglossary(7)` on "blob":
    https://git-scm.com/docs/gitglossary#def_blob_object
    z
text/plain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)selfguessesr   r   L/var/www/html/chatdoc2/venv/lib/python3.10/site-packages/git/objects/blob.py	mime_type$   s   	zBlob.mime_typeN)__name__
__module____qualname____doc__r   r
   r   __annotations__executable_mode	file_mode	link_mode	__slots__propertyr   r   r   r   r   r   r      s   
 )__all__	mimetypesr   sysversion_infotypingr   typing_extensions r   IndexObjectr   r   r   r   r   <module>   s   
