
    8j\                    @    d Z ddlmZ ddlmZ eZ G d d          ZdS )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dS )RecordUpdatenewoldNr	   r   r
   DNSRecord | NonereturnNonec                2    |                      ||           dS )z1RecordUpdate represents a change in a DNS record.N)
_fast_initselfr	   r
   s      M/home/user/adhan/venv/lib/python3.11/site-packages/zeroconf/_record_update.py__init__zRecordUpdate.__init__!   s    S!!!!!    
_DNSRecord_DNSRecord | Nonec                "    || _         || _        dS )zFast init for RecordUpdate.Nr   r   s      r   r   zRecordUpdate._fast_init%   s    r   indexintc                T    |dk    r| j         S |dk    r| j        S t          |          )zGet the new or old record.r   r   )r	   r
   
IndexError)r   r   s     r   __getitem__zRecordUpdate.__getitem__*   s0    A::8OA::8Or   )N)r	   r   r
   r   r   r   )r	   r   r
   r   r   r   )r   r   r   r   )__name__
__module____qualname__	__slots__r   r   r    r   r   r   r      sZ        I" " " " "   
           r   r   N)__doc__
__future__r   _dnsr   r   r   r!   r   r   <module>r%      sl    , # " " " " "      
                   r   