Skip to content

Commit f552483

Browse files
author
Zhe Yu
committed
make basedpyright happy.
1 parent f2aadff commit f552483

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/vectorcode/subcommands/vectorise.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,10 @@ async def chunked_add(
139139
"sha256": new_sha256,
140140
}
141141
if isinstance(chunk, Chunk):
142-
meta["start"] = chunk.start.row
143-
meta["end"] = chunk.end.row
142+
if chunk.start:
143+
meta["start"] = chunk.start.row
144+
if chunk.end:
145+
meta["end"] = chunk.end.row
144146

145147
metas.append(meta)
146148
async with collection_lock:

0 commit comments

Comments
 (0)