
    |;i\                    8    d Z ddlmZ ddlmZ eZ G d d      Zy)a  Multicast DNS Service Discovery for Python, v0.14-wmcbrine
Copyright 2003 Paul Scott-Murphy, 2014 William McBrine

This module provides a framework for the use of DNS Service Discovery
using IP multicast.

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
USA
    )annotations   )	DNSRecordc                  *    e Zd ZdZdddZddZd	dZy)
RecordUpdatenewoldNc                (    | j                  ||       y)z1RecordUpdate represents a change in a DNS record.N)
_fast_initselfr	   r
   s      J/home/ubuntu/myenv/lib/python3.12/site-packages/zeroconf/_record_update.py__init__zRecordUpdate.__init__!   s    S!    c                     || _         || _        y)zFast init for RecordUpdate.Nr   r   s      r   r   zRecordUpdate._fast_init%   s    r   c                \    |dk(  r| j                   S |dk(  r| j                  S t        |      )zGet the new or old record.r   r   )r	   r
   
IndexError)r   indexs     r   __getitem__zRecordUpdate.__getitem__*   s-    A:88OA:88Or   )N)r	   r   r
   DNSRecord | NonereturnNone)r	   
_DNSRecordr
   z_DNSRecord | Noner   r   )r   intr   r   )__name__
__module____qualname__	__slots__r   r   r    r   r   r   r      s    I"
 r   r   N)__doc__
__future__r   _dnsr   r   r   r    r   r   <module>r$      s!   , # 
   r   