o
    Þ­‘h‹  ã                   @  s0   d dl mZ d dlmZ eƒ ZG dd„ dƒZdS )é    )Úannotations)Ú	Formatterc                   @  sD   e Zd ZU eZded< ddd	d
„Zddd„Zddd„Zddd„ZdS )ÚFormattableMixinr   Ú
_formatterNÚfmtÚstrÚlocaleú
str | NoneÚreturnc                 C  s   | j  | ||¡S )zŽ
        Formats the instance using the given format.

        :param fmt: The format to use
        :param locale: The locale to use
        )r   Úformat)Úselfr   r   © r   ú\/var/www/html/stock_analysis/be/venv/lib/python3.10/site-packages/pendulum/mixins/default.pyr      s   zFormattableMixin.formatc                 C  ó   |   ¡ S )zI
        Methods for automatic json serialization by simplejson.
        ©Ú	isoformat©r   r   r   r   Úfor_json   s   zFormattableMixin.for_jsonÚformat_specc                 C  s0   t |ƒdkrd|v r|  |¡S |  |¡S t| ƒS )Nr   ú%)ÚlenÚstrftimer   r   )r   r   r   r   r   Ú
__format__   s
   

zFormattableMixin.__format__c                 C  r   ©Nr   r   r   r   r   Ú__str__$   s   zFormattableMixin.__str__r   )r   r   r   r	   r
   r   )r
   r   )r   r   r
   r   )	Ú__name__Ú
__module__Ú__qualname__r   Ú__annotations__r   r   r   r   r   r   r   r   r   	   s   
 
	
	r   N)Ú
__future__r   Úpendulum.formattingr   r   r   r   r   r   r   Ú<module>   s    