id~ddlmZddlZddlZddlmZddlmZddlm Z ddl m Z eddd Z dS)) annotationsN) lru_cache)_NamespacePath)_find_spec_from_path)IS_PYPYi)maxsizemodnamestrreturnboolc ddlm}m}|| |tjvrdSd}g}d}|dD]}||d|} t||}n#t$rYdSt$r}|dkrYdS tj |d}|j duo*t|ddduot|dot cYcS#t"$rYYdSt$rYYdSwxYwt"$rs|rm |d } n*#t$$r|d } YnwxYwt)j| |z } |t-| YOwxYw|r1|jr*t1 fd |jDrdS|j}|duo|jduo|jduS) Nr) EXT_LIB_DIRS STD_LIB_DIRSF.)path__main____file____path__c3PK|]tfdDV dS)c3BK|]}|VdS)N) startswith).0lib_dirlocations U/opt/cloudlinux/venv/lib/python3.11/site-packages/astroid/interpreter/_import/util.py z)is_namespace...bs1UUWH''00UUUUUUN)any)rrSTD_AND_EXT_LIB_DIRSs @rrzis_namespace..asVUUUU@TUUUUUr)astroid.modutilsrrunionsysbuiltin_module_namessplitappendjoinrAttributeError ValueErrormodules__spec__getattrhasattrrKeyError TypeError _recalculatepathlibPathr submodule_search_locationsrorigin) r rr found_specprocessed_componentslast_submodule_search_locations componentworking_modnamemod last_itemassumed_locationr s @r is_namespacer=s  (--l;;#***uJ =A#]]3''BTBT ##I...((#7884 .&EJJ   555   *$$uuu k"6q"9:LD($Z66$>$Z00$$     uuuu!   uuuu    / NS ? CII SSS ? L L N Nr RIIIS$+< #:#:Y#F /66s;K7L7LMMM H+ 0  T*? T * E uu.8.S + $ &  1 = &   %sm8B  FF-A C=8F= DF DFDF*D32F3$EFErDs #""""" 888888//////!!!!!! 4[[[[[[r