
    c                    R    d Z ddlm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)Sequence)TYPE_CHECKING)AstroidManager)nodesnamestrreturn+tuple[nodes.Module, Sequence[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 d}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       @lib/python3.11/site-packages/astroid/nodes/scoped_nodes/utils.pybuiltin_lookupr      s    
 G3"2 3 3 3"23 z $##(8(?(E   U""s     %A A A A+*A+N)r   r	   r
   r   )__doc__
__future__r   collections.abcr   typingr   astroid.managerr   astroidr   r   r       r   <module>r      s   
 ? > " " " " " " $ $ $ $ $ $             * * * * * * # # # # # #r   