
    0Fie_                    \    d dl mZ d dlZd dlmZ d dlmZ  ej        e          Z	dddZ
dS )    )annotationsN)sizeof)format_bytes    .Aobjobjectdefault_sizefloatreturnintc           	         	 t          |           S # t          $ rK t                              dt	          t          |                     d           t          |          cY S w xY w)zSafe variant of sizeof that captures and logs exceptions

    This returns a default size of 1e6 if the sizeof function fails
    z)Sizeof calculation failed. Defaulting to T)exc_info)r   	Exceptionloggerwarningr   r   )r   r	   s     2lib/python3.11/site-packages/distributed/sizeof.pysafe_sizeofr      s}    
!c{{ ! ! !YSEVEV8W8WYY 	 	
 	
 	
 <     !s    AA&%A&)r   )r   r   r	   r
   r   r   )
__future__r   loggingdask.sizeofr   
dask.utilsr   	getLogger__name__r   r        r   <module>r      sy    " " " " " "        # # # # # #		8	$	$! ! ! ! ! ! !r   