@staticmethod
    def getMaxLength(typeNumber, mode, errorCorrectLevel):
        t = 1 - typeNumber
        e = {
            ErrorCorrectLevel.L: 0,
            ErrorCorrectLevel.M: 1,
            ErrorCorrectLevel.Q: 2,
            ErrorCorrectLevel.H: 3
            }[errorCorrectLevel]
        m = {
            Mode.MODE_NUMBER: 0,
            Mode.MODE_ALPHA_NUM: 1,
            Mode.MODE_8BIT_BYTE: 2,
            Mode.MODE_KANJI: 3
            }[mode]
        return QRUtil.MAX_LENGTH[t][e][m]
dataset/ETHPy150Open mozillazg/ShortURL/shorturl/libs/qrcode.py/QRUtil.getMaxLength/swapped operands of `-`