(self, struct, text="")
| 67 | path.write_text(contents, encoding="utf-8") |
| 68 | |
| 69 | def gen(self, struct, text=""): |
| 70 | if isinstance(struct, (str, bytes, pathlib.PurePath)): |
| 71 | struct = {struct: text} |
| 72 | |
| 73 | self._gen(struct) |
| 74 | return struct.keys() |
| 75 | |
| 76 | def close(self): # noqa: B027 |
| 77 | pass |