File manager - Edit - /usr/local/CyberCP/lib/python3.10/site-packages/proto/marshal/collections/__pycache__/repeated.cpython-310.pyc
Back
o �h � @ sP d dl Z d dlZd dlmZ d dlmZ G dd� de jj�ZG dd� de�Z dS )� N)�Iterable)�cached_propertyc @ s� e Zd ZdZdd�dd�Zdd� Zdd � Zd d� Zdd � Zdd� Z dd� Z dd� Zdd� Zde fdd�Zddd�dedefdd�Zedd � �ZdS )!�Repeatedz�A view around a mutable sequence in protocol buffers. This implements the full Python MutableSequence interface, but all methods modify the underlying field container directly. N)� proto_typec C s || _ || _|| _dS )a Initialize a wrapper around a protobuf repeated field. Args: sequence: A protocol buffers repeated field. marshal (~.MarshalRegistry): An instantiated marshal, used to convert values going to and from this map. N)�_pb�_marshal�_proto_type)�self�sequence�marshalr � r �U/usr/local/CyberCP/lib/python3.10/site-packages/proto/marshal/collections/repeated.py�__init__ s zRepeated.__init__c C s t | �| jdd� | jd�S )z%Copy this object and return the copy.N)r )�type�pbr �r r r r �__copy__) s zRepeated.__copy__c C s | j |= dS )zDelete the given item.N�r �r �keyr r r �__delitem__- s zRepeated.__delitem__c C s>