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rrrrrrrrrrrrrrrrrrrrrrrRrrrrrrrrrrr4rc|i} tn t|jDcic]\}}|D]}||c}}}fd}d}||fScc}}}w)aCAttach lazily loaded submodules, functions, or other attributes. Typically, modules import submodules and attributes as follows: ```py import mysubmodule import anothersubmodule from .foo import someattr ``` The idea is to replace a package's `__getattr__`, `__dir__`, such that all imports work exactly the way they would with normal imports, except that the import occurs upon first use. The typical way to call this function, replacing the above imports, is: ```python __getattr__, __dir__ = lazy.attach( __name__, ['mysubmodule', 'anothersubmodule'], {'foo': ['someattr']} ) ``` This functionality requires Python 3.7 or higher. Args: package_name (`str`): Typically use `__name__`. submodules (`set`): List of submodules to attach. submod_attrs (`dict`): Dictionary of submodule -> list of attributes / functions. These attributes are imported as they are used. Returns: __getattr__, __dir__, __all__ c |vr tjd|S|vrXd|} tj|}t ||}||k(r"t j }||j|<|Stdd|#t$r}tdd|d|d}~wwxYw#t$r}td|d|d}~wwxYw)N.zError importing z: zNo z attribute ) importlib import_module Exceptionprintgetattrsysmodules__dict__AttributeError) namee submod_pathsubmodattrpkgattr_to_modules package_name submoduless ^/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/huggingface_hub/__init__.py __getattr__z_attach..__getattr__ s :   ..,q/GHH_ $)N!OD,A+BCK "00=64(D t,,kk,/%) T"K 3|nKv!FG G+ (avRsCD  ( Rs;< s.BB4 B1B,,B14 C=CCctS)N)__all__r__dir__z_attach..__dir__%sr)setitems) rr submod_attrsmodattrsrrrrs `` @r_attachrswP U _ 3?3E3E3GZZZS%TYZDtSyZtZOH6  A[sA)rr EAGER_IMPORT)r)r)r')r3r4)rNrMrOrPrQrR)rr)rr)r)r)r)r)r)rrrrrrrrrrrrrrr)NN(rosrtypingr __version__ _SUBMOD_ATTRSrr__name__rrenvirongetrrrrrrr r r r r rrrrrrrrrrrrrrrrrrr r!r"r#r$r%r&r'r(r)r*r+r,r-r.r/r0r1r2r3r4r5r6r7r8r9r:r;r<r=r>r?r@rArBrCrDrErFrGrHrIrJrKrLrNrMrOrPrQrRrSrTrUrVrWrXrYrZr[r\r]r^r_r`rarbrcrdrerfrgrhrirjrkrlrmrnrorprqrrrsrtrurvrwrxryrzr{r|r}r~rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrinference._clientrr"inference._generated._async_clientrinference._generated.typesrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr r r r r rrrrrrrrrrrrrrrrrrr r!r"r#r$r%r&r'r(r)r*r+r,r-r.r/r0r1r2r3r4r5r6r7r8r9r:r;r<r=r>r?r@rArBrCrDrErFrGrHrIrJrKrLrMrNrOrPrQrRrSrTrUrVrWrXrYrZr[r\r]r^r_r`rarbrcrdrerfrgrhrirjrkrlrmrnrorprqrrrsrtrurvrwrxryrzr{r|r}r~rrrrrrrrrrrrrinference._mcp.agentrinference._mcp.mcp_clientrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrserialization._ddufrrrrrrrrrrrrrrrrrrrrrrrrs5V  gg gg" #g2 3g@AgFGgTUgZ [gpqgxygJ Kgbcglmg| M}gXYgdegn  +b#H  "     mg hk \ P fxB]S W::>>."%D2 65       MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM\ IbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbF,+44++     '&        Mr