(cls, fname: str, to_dict: bool = False)
| 299 | |
| 300 | @classmethod |
| 301 | def from_txt_file(cls, fname: str, to_dict: bool = False) -> Definition: |
| 302 | with open(fname, 'r') as f: |
| 303 | lines = f.read() |
| 304 | return cls.from_string(lines, to_dict) |
| 305 | |
| 306 | @classmethod |
| 307 | def from_string(cls, string: str, to_dict: bool = False) -> Definition: |
nothing calls this directly
no test coverage detected