(
self,
t: Optional[List[Any]] = None,
raise_on_error: bool = True
)
| 504 | """ |
| 505 | |
| 506 | def __init__( |
| 507 | self, |
| 508 | t: Optional[List[Any]] = None, |
| 509 | raise_on_error: bool = True |
| 510 | ) -> None: |
| 511 | super(SymbolList, self).__init__() |
| 512 | self.raise_on_error = raise_on_error |
| 513 | if isinstance(t, (str, symbol)): |
| 514 | self.append(t) |
| 515 | else: |
| 516 | self.extend(t) |
| 517 | |
| 518 | def _check_list(self, t: Iterable[Any]) -> List[Any]: |
| 519 | """ Check all items in list are :class:`symbol`s (or are converted to symbols). """ |