Skip to content

Commit

Permalink
fix: remove optional
Browse files Browse the repository at this point in the history
  • Loading branch information
cpacker committed Nov 22, 2024
1 parent 8e3df86 commit 36598bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion letta/functions/schema_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def type_to_json_schema_type(py_type):
None: "null",
type(None): "null",
# Optional types
Optional[str]: "string",
# Optional[str]: "string", # NOTE: caught above ^
Union[str, None]: "string",
}
if py_type not in type_map:
Expand Down

0 comments on commit 36598bb

Please sign in to comment.