mirror of
https://github.com/langgenius/dify.git
synced 2026-03-10 11:10:19 +08:00
fix(api): add return type annotation to filter_none_values() (#32774)
This commit is contained in:
parent
5c7a293ba7
commit
68647391e7
@ -1,6 +1,6 @@
|
||||
from contextlib import contextmanager
|
||||
from datetime import datetime
|
||||
from typing import Union
|
||||
from typing import Any, Union
|
||||
from urllib.parse import urlparse
|
||||
|
||||
from sqlalchemy import select
|
||||
@ -9,7 +9,7 @@ from models.engine import db
|
||||
from models.model import Message
|
||||
|
||||
|
||||
def filter_none_values(data: dict):
|
||||
def filter_none_values(data: dict[str, Any]) -> dict[str, Any]:
|
||||
new_data = {}
|
||||
for key, value in data.items():
|
||||
if value is None:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user