
    e                    D    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	y)	z8This module contains utility functions for scoped nodes.    )annotations)TYPE_CHECKING)AstroidManager)nodesc                    t               }	 |j                  }| dk(  r|dfS 	 |j                  |    }||fS # t        $ r |j                          |j                  }Y Dw xY w# t        $ r g }Y ||fS w xY w)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)namemanager_builtin_astroidstmtss       B/usr/lib/python3/dist-packages/astroid/nodes/scoped_nodes/utils.pybuiltin_lookupr      s    
 G3"22
 z##$4$;$;D$A U""  3"223  U""s    5 A  %AA A10A1N)r   strreturnz'tuple[nodes.Module, list[nodes.NodeNG]])
__doc__
__future__r   typingr   astroid.managerr   astroidr   r   r	       r   <module>r      s   
 ? "   *#r   