✏️ 编辑:_py_abc.cpython-39.pyc
路径:
/usr/lib64/python3.9/__pycache__/_py_abc.cpython-39.pyc
大小:4.55 KB · 修改:2026-08-12 15:51:23 · 权限:0644 · 只读(保存会失败)
← 返回目录
👁 查看
⬇ 下载
检测到二进制内容,直接保存可能损坏文件。请改用「上传替换」。
a �i- � @ s( d dl mZ dd� ZG dd� de�ZdS )� )�WeakSetc C s t jS )z�Returns the current ABC cache token. The token is an opaque object (supporting equality testing) identifying the current version of the ABC cache for virtual subclasses. The token changes with every call to ``register()`` on any ABC. )�ABCMeta�_abc_invalidation_counter� r r �/usr/lib64/python3.9/_py_abc.py�get_cache_token s r c sV e Zd ZdZdZ� fdd�Zdd� Zddd �Zd d� Zdd � Z dd� Z dd� Z� ZS )r ah Metaclass for defining Abstract Base Classes (ABCs). Use this metaclass to create an ABC. An ABC can be subclassed directly, and then acts as a mix-in class. You can also register unrelated concrete classes (even built-in classes) and unrelated ABCs as 'virtual subclasses' -- these and their descendants will be considered subclasses of the registering ABC by the built-in issubclass() function, but the registering ABC won't show up in their MRO (Method Resolution Order) nor will method implementations defined by the registering ABC be callable (not even via super()). r c s� t � j| |||fi |��}dd� |�� D �}|D ]:}t|dt� �D ]&}t||d �}t|dd�rB|�|� qBq0t|�|_t� |_ t� |_ t� |_tj |_|S )Nc S s h | ]\}}t |d d�r|�qS )�__isabstractmethod__F)�getattr)�.0�name�valuer r r � <setcomp>&