refac: modernize type annotations (PEP 604 / PEP 585)

This commit is contained in:
Timothy Jaeryang Baek
2026-05-12 17:10:15 +09:00
parent a59c967d7e
commit 6d0295588e
197 changed files with 3265 additions and 3488 deletions
+3 -5
View File
@@ -1,14 +1,12 @@
import logging
import math
import re
from datetime import datetime
from typing import Optional, Any
import uuid
from open_webui.utils.misc import get_last_user_message, get_messages_content
from datetime import datetime
from typing import Any, Optional
from open_webui.config import DEFAULT_RAG_TEMPLATE
from open_webui.utils.misc import get_last_user_message, get_messages_content
log = logging.getLogger(__name__)