File: //var/opt/nydus/ops/attr/__pycache__/_compat.cpython-39.pyc
a
�,�h�
� @ s� d dl Z d dlZd dlZd dlZd dlmZmZ d dlmZ e� � dkZ
ejdd� dkZejdd� dkZ
ejdd� dkZejdd� d kZejdd� d
kZejdd� dkZer�d dlZejZndd
� ZG dd� d�Ze�� Zdd� ZdS )� N)�Mapping�Sequence)�
_GenericAlias�PyPy� )� � )r �
)r � )r � )r �
)r � c C s | j �di �S )z,
Get annotations for *cls*.
�__annotations__)�__dict__�get)�cls� r �=/opt/nydus/tmp/pip-target-wkfpz8uv/lib/python/attr/_compat.py�_get_annotations s r c @ s. e Zd ZdZdgZdd� Zdd� Zdd� Zd S )
�_AnnotationExtractorz^
Extract type annotations from a callable, returning None whenever there
is none.
�sigc C s2 zt �|�| _W n ttfy, d | _Y n0 d S )N)�inspect� signaturer �
ValueError� TypeError)�self�callabler r r �__init__+ s z_AnnotationExtractor.__init__c C s>