U of" @sNddlmZddlmZddlZddlZddlZddlZddlmZddlm Z ddlm Z ddlm Z ddlm Z dd l mZdd lmZejd kZejd kZejd kZejdkZGdddejZerddlmZeZddlmZeZddl m!Z!nddlZddlZddlm!Z!dddddZ"d$ddddddZ#ddd d!d"d#Z$dS)%) annotations) ConfigParserN)Any)List)Optional)Sequence)Union)inspect_getfullargspec)inspect_formatargspecposix) )r )r c@seZdZddddZdS) EncodedIONone)returncCsdS)N)selfrrA/opt/hc_python/lib/python3.8/site-packages/alembic/util/compat.pyclose$szEncodedIO.closeN)__name__ __module__ __qualname__rrrrrr#sr) resources)metadata) EntryPointstrzSequence[EntryPoint])grouprcCs.t}t|dr|j|dS||dSdS)Nselect)rr)importlib_metadata entry_pointshasattrrget)reprrrimportlib_metadata_get6s  r%rz Optional[Any]) annotation base_modulercCst|tr|St|dddkr6t|ddddSt|trh|jd|fkrXt|jS|jd|jSt|tj rt|ddSt|ddS) zvendored from python 3.7rNtypingztyping.~builtins.) isinstancergetattrreprreplacetyperrr(TypeVar)r&r'rrrformatannotation_fwdref>s    r3rz&Sequence[Union[str, os.PathLike[str]]]z List[str]) file_config file_argumentrcCs tr|j|ddS||SdS)Nlocale)encoding)py310read)r4r5rrrread_config_parserRsr:)N)% __future__r configparserrioossysr(rrrrrZsqlalchemy.utilr Zsqlalchemy.util.compatr nameZis_posix version_infoZpy311r8Zpy39 TextIOWrapperr importlibrZ _resourcesZimportlib_resourcesr _metadatar importlib.metadatarr%r3r:rrrrs<