
    $)di                         d Z ddlmZ ddlmZmZmZmZmZm	Z	m
Z g dZ edg d          Z G d de          Zdd
ZdS )a  
This package defines an object type which can efficiently represent
a bitarray.  Bitarrays are sequence types and behave very much like lists.

Please find a description of this package at:

    https://github.com/ilanschnell/bitarray

Author: Ilan Schnell
    )
namedtuple)bitarray
decodetree
bits2bytes_bitarray_reconstructorget_default_endian_sysinfoBITARRAY_VERSION)r   frozenbitarrayr   r   
BufferInfo)addressnbytesendianpadbitsallocreadonlyimportedexportsc                       e Zd ZdZd Zd Zd Zd ZexZxZ	xZ
xZxZZexZxZxZxZxZZexZxZxZxZZexZxZxZxZZexZZdS )r   a  frozenbitarray(initializer=0, /, endian='big', buffer=None) -> frozenbitarray

Return a `frozenbitarray` object.  Initialized the same way a `bitarray`
object is initialized.  A `frozenbitarray` is immutable and hashable,
and may therefore be used as a dictionary key.
c                 .    |                                   d S )N)_freezeselfargskwargss      X/var/www/menimich/repos/protonApp/venv/lib/python3.11/site-packages/bitarray/__init__.py__init__zfrozenbitarray.__init__!   s        c                 0    dt          j        |           z   S )Nfrozen)r   __repr__)r   s    r   r!   zfrozenbitarray.__repr__$   s    (+D1111r   c                     t          | d          }t          t          |          |                                f          S )zReturn hash(self).big)r   hashlentobytes)r   as     r   __hash__zfrozenbitarray.__hash__'   s4     T5!!SVVQYY[[)***r   c                      t          d          ) zfrozenbitarray is immutable)	TypeErrorr   s      r   __delitem__zfrozenbitarray.__delitem__0   s    5666r   N) __name__
__module____qualname____doc__r   r!   r(   r,   appendbytereverseclearextendencodefill	frombytesfromfileinsertinvertpackpopremovereversesetallsort__setitem____iadd____iand____imul____ior____ixor____ilshift____irshift__ r   r   r   r      s           2 2 2+ + +7 7 7 =HGFG[G5G6GFT:EEIEE6EFETC5@@F@W@v@{:EEHExE(EWx ++K+++r   r      c                 :    ddl m} |                    |           S )zhtest(verbosity=1) -> TextTestResult

Run self-test, and return `unittest.runner.TextTestResult` object.
r   )test_bitarray)	verbosity)r   rL   run)rM   rL   s     r   testrO   ;   s-    
 '&&&&&y111r   N)rJ   )r0   collectionsr   bitarray._bitarrayr   r   r   r   r   r	   r
   __version____all__r   r   rO   rI   r   r   <module>rT      s   	 	 # " " " " "                 
 E
D
DZE E EF F
, , , , ,X , , ,D2 2 2 2 2 2r   