Commit 32929fe
fix: add null guard for markdown_processor in read_entity_content
Pyright flagged `self.markdown_processor.read_file()` as
reportOptionalMemberAccess after markdown_processor was made Optional
in the FileService refactor. Added a fail-fast ValueError if
markdown_processor is None when read_entity_content is called —
consistent with the project's fail-fast principle and allows Pyright
to narrow the type for the subsequent call.
Co-authored-by: jope-bm <jope-bm@users.noreply.github.com>
Signed-off-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>1 parent 4788436 commit 32929fe
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
82 | 86 | | |
83 | 87 | | |
84 | 88 | | |
| |||
0 commit comments