(self, s: str, partial: bool = False)
| 340 | ) |
| 341 | |
| 342 | def valid(self, s: str, partial: bool = False) -> None: |
| 343 | sset = set(s) |
| 344 | if self.goodset and not sset <= self.goodset: |
| 345 | raise ArgumentFormat("invalid chars {0} in {1}". |
| 346 | format(''.join(sset - self.goodset), s)) |
| 347 | self.val = s |
| 348 | |
| 349 | def __str__(self) -> str: |
| 350 | b = '' |
nothing calls this directly
no test coverage detected