<NME> pingresp.py
<BEF> # Copyright (c) 2015 Nicolas JOUANIN
#
# See the file license.txt for copying permission.
from hbmqtt.mqtt.packet import MQTTPacket, MQTTFixedHeader, PINGRESP
from hbmqtt.errors import HBMQTTException


    VARIABLE_HEADER = None
    PAYLOAD = None

    def __init__(self, fixed: MQTTFixedHeader=None):
        if fixed is None:
            header = MQTTFixedHeader(PacketType.PINGREQ, 0x00)
        else:
        else:
            if fixed.packet_type is not PINGRESP:
                raise HBMQTTException("Invalid fixed packet type %s for PingRespPacket init" % fixed.packet_type)
            header = fixed
        super().__init__(header)
        self.variable_header = None
        self.payload = None

    @classmethod
    def build(cls):
        return cls()

<MSG> Add missing parameters to __init__
use class name in __repr__

<DFF> @@ -8,7 +8,7 @@ class PingRespPacket(MQTTPacket):
     VARIABLE_HEADER = None
     PAYLOAD = None
 
-    def __init__(self, fixed: MQTTFixedHeader=None):
+    def __init__(self, fixed: MQTTFixedHeader=None, variable_header=None, payload=None):
         if fixed is None:
             header = MQTTFixedHeader(PacketType.PINGREQ, 0x00)
         else:

{'addition_count': 1, 'commit_subject': 'Add missing parameters to __init__ use class name in __repr__', 'deletion_count': 1, 'file_extension': '.py', 'lang': 'py', 'license': 'mit', 'repo_name': 'beerfactory/hbmqtt'}