GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( b34662...456cb1 )
by Benjamin
01:12
created

ProfileMessage.__str__()   A

Complexity

Conditions 1

Size

Total Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 2
rs 10
cc 1
1
from copy import deepcopy
2
3
from libAnt.message import BroadcastMessage
4
5
6
class ProfileMessage:
7
    def __init__(self, msg, previous):
8
        self.previous = deepcopy(previous)
9
        self.msg = deepcopy(msg)
10
11
    def __str__(self):
12
        return str(self.msg.deviceNumber)
13
14
    @staticmethod
15
    def decode(cls, msg: BroadcastMessage):
16
        if msg.deviceType in cls.match:
17
            cls.match[msg.deviceType]()