xjTddlmZddlZddlZddlZddlZddlZddlmZGdde Z e Z e Z e Z e Ze Ze Ze Zej$eeefZddZddZdddZGd d eZGd d ZGd dej:Z d ddZGddej@Z y)) annotationsN)Sequencec eZdZy)CryptographyDeprecationWarningN__name__ __module__ __qualname__f/mnt/ssd/data/Dropbox/adrian/sandbox/mcp-query/venv/lib/python3.12/site-packages/cryptography/utils.pyrrr rc@t|tst|dy)Nz must be bytes) isinstancebytes TypeErrornamevalues r _check_bytesr(s# eU #4&/00 $r ct|tttfry t|y#t$rt |dwxYw)Nz must be bytes-like)rr bytearray memoryviewrrs r _check_bytesliker-sE%%J7865 64& 34556s *Ac~|dk(r td|j|xs|jdzdzxsddS)Nrzlength argument can't be 0big) ValueErrorto_bytes bit_length)integerlengths r int_to_bytesr%6sJ {566   67%%'!+16Q r c eZdZy)InterfaceNotImplementedNrr r r r'r'>rr r'ceZdZddZy)_DeprecatedValuec.||_||_||_yN)rmessage warning_class)selfrr,r-s r __init__z_DeprecatedValue.__init__Cs  *r N)robjectr,str)rr r r/r r r r)r)Bs+r r)c@eZdZdfd ZddZddZd dZd dZxZS) _ModuleWithDeprecationscVt||j||jd<yN_module)superr/r__dict__)r.module __class__s r r/z _ModuleWithDeprecations.__init__Js" )#) i r ct|j|}t|tr:t j |j |jd|j}|S||j|<|SN) stacklevel) getattrr6rr)warningswarnr,r-rr8)r.robjs r __getattr__z#_ModuleWithDeprecations.__getattr__Ns\dllD) c+ , MM#++s'8'8Q G))C #&DMM$  r ct|tr|jj|dn||j|<t |j ||yr+)rr)r8popsetattrr6)r.attrrs r __setattr__z#_ModuleWithDeprecations.__setattr__]s? e- . MM  dD )"'DMM$  dE*r c t|j|}t|tr,t j |j |jd|jj|dt|j|yr<) r?r6rr)r@rAr,r-r8rEdelattr)r.rGrBs r __delattr__z#_ModuleWithDeprecations.__delattr__dsYdllD) c+ , MM#++s'8'8Q G $% d#r c2dgt|jSr5)dirr6r.s r __dir__z_ModuleWithDeprecations.__dir__ls.C -..r )r9ztypes.ModuleType)rr1returnz typing.Any)rGr1rr0rPNone)rGr1rPrQ)rPz Sequence[str]) rr r r/rCrHrKrO __classcell__)r:s@r r3r3Is* +$/r r3ctj|}t|tst|xtj|<}t |||}| t ||||Sr+)sysmodulesrr3r)rF)r module_namer,r-rr9dvs r deprecatedrXpsZ[[ %F f5 6,CF,KK K 6 %- 8B b! Ir ceZdZddZddZy)Enumcjd|jjd|jd|jdS)N<.z: >)r:r_name__value_rNs r __repr__z Enum.__repr__s14>>**+1T[[MDLL;K1MMr cL|jjd|jS)Nr])r:rr_rNs r __str__z Enum.__str__s"..))*!DKK=99r N)rPr1)rr r rarcr r r rZrZs N:r rZ)rr1rrrPrQ)rr1rBufferrPrQr+)r#intr$z int | NonerPr) rr0rVr1r,r1r-z type[Warning]rz str | NonerPr))! __future__renumrTtypestypingr@collections.abcr UserWarningrDeprecatedIn36DeprecatedIn40DeprecatedIn41DeprecatedIn42DeprecatedIn43DeprecatedIn47DeprecatedIn50Unionrrrrdrrr% Exceptionr'r) ModuleTyper3rXrZr r r rvs # $  [ 0////// eY 2 31 6 i ++$/e..$/X  !     &:499:r