(self, op: LoadLiteral, t: tuple[object, ...])
| 303 | pass |
| 304 | |
| 305 | def check_tuple_items_valid_literals(self, op: LoadLiteral, t: tuple[object, ...]) -> None: |
| 306 | for x in t: |
| 307 | if x is not None and not isinstance(x, (str, bytes, bool, int, float, complex, tuple)): |
| 308 | self.fail(op, f"Invalid type for item of tuple literal: {type(x)})") |
| 309 | if isinstance(x, tuple): |
| 310 | self.check_tuple_items_valid_literals(op, x) |
| 311 | |
| 312 | def check_frozenset_items_valid_literals(self, op: LoadLiteral, s: frozenset[object]) -> None: |
| 313 | for x in s: |
no test coverage detected