mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 09:53:45 +00:00
minor fix to type declarations
This commit is contained in:
parent
f4a54b9db4
commit
3c672f4293
1 changed files with 1 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ def sanitize_metadata_for_attributes(metadata: dict[str, Any]) -> dict[str, str
|
||||||
for key, value in metadata.items():
|
for key, value in metadata.items():
|
||||||
if isinstance(value, bool):
|
if isinstance(value, bool):
|
||||||
sanitized[key] = value
|
sanitized[key] = value
|
||||||
elif isinstance(value, (int, float)):
|
elif isinstance(value, int | float):
|
||||||
sanitized[key] = float(value)
|
sanitized[key] = float(value)
|
||||||
elif isinstance(value, str):
|
elif isinstance(value, str):
|
||||||
sanitized[key] = value
|
sanitized[key] = value
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue