a
    yn„fb	  ã                   @  sv   U d dl mZ d dlmZ d dlmZmZmZ dZdZ	de
d< erNd dlmZ G d	d
„ d
eƒZe› d�e_e ¡ ZdS )é    )Úannotations)ÚPrivateSingleton)ÚTYPE_CHECKINGÚSelfÚ	TypeAlias)Ú	ShapeItemÚUnknownLengthÚunknown_lengthzint | UnknownLengthr   r   )ÚNotImplementedTypec                   @  sÐ   e Zd ZU ded< ddœdd„ZeZeZddœdd„ZeZeZ	ddœd	d
„Z
e
Ze
Zddœdd„ZeZeZddœdd„ZeZddœdd„Zdd„ Zddœdd„Zdd„ Zdd„ Zdd„ ZeZeZeZeZeZdS )r   ÚstrÚ_instance_namezSelf | NotImplementedType)Úreturnc                 C  s   t |tƒs|| u r| S tS d S ©N©Ú
isinstanceÚintÚNotImplemented©ÚselfÚother© r   úY/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/awkward/_nplikes/shape.pyÚ__add__   s    zUnknownLength.__add__c                 C  s   t |tƒs|| u r| S tS d S r   r   r   r   r   r   Ú__sub__   s    zUnknownLength.__sub__c                 C  s   t |tƒs|| u r| S tS d S r   r   r   r   r   r   Ú__mul__%   s    zUnknownLength.__mul__c                 C  s   t |tƒs|| u r| S tS d S r   r   r   r   r   r   Ú__floordiv__.   s    zUnknownLength.__floordiv__ztuple[Self, Self]c                 C  s   | | fS r   r   r   r   r   r   Ú
__divmod__7   s    zUnknownLength.__divmod__c                 C  s   dS )Nz##r   ©r   r   r   r   Ú__str__<   s    zUnknownLength.__str__c                 C  s   | j S r   )r   r   r   r   r   Ú__repr__?   s    zUnknownLength.__repr__Úboolc                 C  s   || u rdS t dƒ‚d S )NTz3cannot compare unknown lengths against known values©Ú	TypeErrorr   r   r   r   Ú__eq__B   s    zUnknownLength.__eq__c                 C  s   t dƒ‚d S )Nzcannot order unknown lengthsr!   r   r   r   r   Ú__gt__H   s    zUnknownLength.__gt__c                 C  s   t dƒ‚d S )Nz9cannot interpret unknown lengths as concrete index valuesr!   r   r   r   r   Ú	__index__K   s    zUnknownLength.__index__c                 C  s   t dƒ‚d S )Nz3cannot interpret unknown lengths as concrete valuesr!   r   r   r   r   Ú__int__N   s    zUnknownLength.__int__N)Ú__name__Ú
__module__Ú__qualname__Ú__annotations__r   Ú__radd__Ú__iadd__r   Ú__rsub__Ú__isub__r   Ú__rmul__Ú__imul__r   Ú__rfloordiv__Ú__ifloordiv__r   Ú__rdivmod__r   r   r#   r$   r%   r&   Ú__bool__Ú	__float__Ú__ge__Ú__le__Ú__lt__r   r   r   r   r      s4   
r   z.unknown_lengthN)Ú
__future__r   Zawkward._singletonr   Zawkward._typingr   r   r   Ú__all__r   r*   Útypesr
   r   r'   r   Ú_newr	   r   r   r   r   Ú<module>   s   J