관리-도구
편집 파일: compat.cpython-38.pyc
U 0?�f" � @ sN d dl mZ d dlmZ d dlZd dlZd dlZd dlZd dlmZ d dlm Z d dlm Z d dlmZ d dlmZ d d l mZ d d lmZ ejdkZejdkZejd kZejdkZG dd� dej�Zer�d dlmZ eZd dlmZ eZd dl m!Z! nd dlZd dlZd dlm!Z! ddd�dd�Z"d$dddd�dd�Z#ddd d!�d"d#�Z$dS )%� )�annotations)�ConfigParserN)�Any)�List)�Optional)�Sequence)�Union)�inspect_getfullargspec)�inspect_formatargspec�posix)� � )r � )r � c @ s e Zd Zdd�dd�ZdS )� EncodedIO�None)�returnc C s d S )N� )�selfr r �A/opt/hc_python/lib/python3.8/site-packages/alembic/util/compat.py�close$ s zEncodedIO.closeN)�__name__� __module__�__qualname__r r r r r r # s r )� resources)�metadata)� EntryPoint�strzSequence[EntryPoint])�groupr c C s. t �� }t|d�r|j| d�S |�| d�S d S )N�select)r r )�importlib_metadata�entry_points�hasattrr �get)r �epr r r �importlib_metadata_get6 s r% r z Optional[Any])� annotation�base_moduler c C s� t | t�r| S t| dd�dkr6t| ��dd��dd�S t | t�rh| jd|fkrXt| j�S | jd | j S t | tj �r�t| ��dd�S t| ��dd�S ) zvendored from python 3.7r N�typingztyping.� �~�builtins�.) � isinstancer �getattr�repr�replace�typer r r( �TypeVar)r&