(self, attr, val)
| 103 | raise AttributeError(attr) |
| 104 | |
| 105 | def __setattr__(self, attr, val): |
| 106 | # type: (str, Any) -> None |
| 107 | mode = self.__dict__.get("mode", 0) |
| 108 | if mode == 0: |
| 109 | self.__dict__[attr] = val |
| 110 | else: |
| 111 | [self.optam1, self.optam2][mode - 1][attr] = val |
| 112 | |
| 113 | def parse_options(self): |
| 114 | # type: () -> None |