mirror of
https://github.com/langgenius/dify.git
synced 2026-04-05 18:09:21 +08:00
fix(api): add return type annotation to filter_none_values() (#32774)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user