Skip to content

Commit b7b8e64

Browse files
committed
fix: Use inline union type instead of TagType alias in write_note
Pyright doesn't allow type alias variables in function signatures. Changed tags: TagType to tags: list[str] | str | None to match the pattern used in build_context.py. Fixes type checking errors across all platforms. Signed-off-by: phernandez <paul@basicmachines.co>
1 parent 94670b3 commit b7b8e64

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/basic_memory/mcp/tools/write_note.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async def write_note(
2828
content: str,
2929
folder: str,
3030
project: Optional[str] = None,
31-
tags: TagType = None,
31+
tags: list[str] | str | None = None,
3232
entity_type: str = "note",
3333
context: Context | None = None,
3434
) -> str:

0 commit comments

Comments
 (0)