
    yIf                    F    d Z ddlmZ ddlmZ ddlmZ erddlmZ dd
Z	dS )z8This module contains utility functions for scoped nodes.    )annotations)TYPE_CHECKING)AstroidManager)nodesnamestrreturn'tuple[nodes.Module, list[nodes.NodeNG]]c                    t                      }	 |j        }n+# t          $ r |                                 |j        }Y nw xY w| dk    r|dfS 	 |j        |          }n# t          $ r g }Y nw xY w||fS )zxLookup a name in the builtin module.

    Return the list of matching statements and the ast for the builtin module
    __dict__ )r   builtins_moduleKeyErrorclear_cachelocals)r   manager_builtin_astroidstmtss       T/var/www/piapp/venv/lib/python3.11/site-packages/astroid/nodes/scoped_nodes/utils.pybuiltin_lookupr      s    
 G3"2 3 3 3"23 z##$4$;D$A   U""s     %A A A A+*A+N)r   r   r	   r
   )
__doc__
__future__r   typingr   astroid.managerr   astroidr   r   r       r   <module>r      s{   
 ? > " " " " " "             * * * * * * # # # # # #r   