def __bytes__(self):
        from pandas.core.config import get_option

        encoding = get_option("display.encoding")
        return self.__unicode__().encode(encoding, 'replace')
Test MeasuringModeStmt input validation
dataset/ETHPy150Open pydata/pandas/pandas/types/dtypes.py/ExtensionDtype.__bytes__--crossover with--dataset/ETHPy150Open curtacircuitos/pcb-tools/gerber/tests/test_excellon_statements.py/test_measmodestmt_validation