§
    ‹Ÿjº  ã                  ó*   — d Z ddlmZ ddlmZ d
d„Zd	S )z:
A simple utility to import something by its string name.
é    )Úannotations)ÚAnyÚnameÚstrÚreturnr   c                ó†  — t          | t          ¦  «        st          dt          | ¦  «        z  ¦  «        ‚|                      dd¦  «        }t          |¦  «        dk    rP|\  }}t          ||g¬¦  «        }	 t          ||¦  «        }n%# t          $ r}t          d|z  ¦  «        |‚d}~ww xY w|S t          |d         ¦  «        S )	a‰  Import and return ``bar`` given the string ``foo.bar``.

    Calling ``bar = import_item("foo.bar")`` is the functional equivalent of
    executing the code ``from foo import bar``.

    Parameters
    ----------
    name : string
        The fully qualified name of the module/package being imported.

    Returns
    -------
    mod : module object
        The module that was imported.
    z&import_item accepts strings, not '%s'.ú.é   é   )ÚfromlistzNo module named %sNr   )
Ú
isinstancer   Ú	TypeErrorÚtypeÚrsplitÚlenÚ
__import__ÚgetattrÚAttributeErrorÚImportError)r   ÚpartsÚpackageÚobjÚmoduleÚpakÚes          úi/var/www/finuniver-perm.ru/html/student/venv/lib/python3.11/site-packages/traitlets/utils/importstring.pyÚimport_itemr      sÙ   € õ  �d�CÑ Ô ð OÝÐ@Å4ÈÁ:Ä:ÑMÑNÔNÐNØ�KŠK˜˜QÑÔ€EÝ
ˆ5�z„z�Q‚€à‰ˆ�Ý˜G¨s¨eÐ4Ñ4Ô4ˆð	AÝ˜& #Ñ&Ô&ˆCˆCøÝð 	Að 	Að 	AÝÐ2°SÑ8Ñ9Ô9¸qÐ@øøøøð	Aøøøàˆ
õ ˜% œ(Ñ#Ô#Ð#s   Á6B Â
B)ÂB$Â$B)N)r   r   r   r   )Ú__doc__Ú
__future__r   Útypingr   r   © ó    r   ú<module>r#      sS   ððð ð
 #Ð "Ð "Ð "Ð "Ð "à Ð Ð Ð Ð Ð ð$ð $ð $ð $ð $ð $r"   