Encoder   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 17
Bugs 1 Features 1
Metric Value
c 17
b 1
f 1
dl 0
loc 9
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A encode() 0 8 1
1
try:
2
    # Test for mypy support (requires Python 3)
3
    from typing import Text
4
except ImportError:
5
    pass
6
7
8
class Encoder(object):
9
    @staticmethod
10
    def encode(msg):
11
        # type: (bytes) -> List[bytes]
12
        """
13
        Don't change the message at all
14
        :param msg:
15
        """
16
        return [msg]
17