open-webui/backend/open_webui
Classic298 6be11d4fc9
chore: remove dead json imports (#27815)
Fourteen modules import `json` without using it. Ruff flags every one with F401, and a word-boundary search for `json` in each file matches only the import line itself, including inside strings, comments and annotations.

Two exclusions, both deliberate. Migration files are left alone: the import is equally dead there, but those files are frozen history and not worth the churn. `models/chats.py` has the same dead import and is handled in its own change, so it is skipped here to avoid two changes touching the same line.

No behaviour change.
2026-07-31 17:25:40 -04:00
..
data refac: mv backend files to /open_webui dir 2024-09-04 16:54:48 +02:00
internal perf: cut per-request database session overhead (#27385) 2026-07-23 17:49:48 -05:00
migrations chore: format 2026-07-27 04:46:45 -04:00
models chore: remove dead json imports (#27815) 2026-07-31 17:25:40 -04:00
retrieval chore: remove dead json imports (#27815) 2026-07-31 17:25:40 -04:00
routers chore: remove dead json imports (#27815) 2026-07-31 17:25:40 -04:00
socket perf: optional orjson JSON codec behind ENABLE_ORJSON (#27583) 2026-07-27 03:45:37 -04:00
static refac 2026-07-27 19:39:36 -04:00
storage refac: modernize type annotations (PEP 604 / PEP 585) 2026-05-12 17:10:15 +09:00
tools chore: remove dead json imports (#27815) 2026-07-31 17:25:40 -04:00
utils fix: escape line separators in orjson output (#27819) 2026-07-31 17:25:30 -04:00
__init__.py refac 2026-07-27 19:39:36 -04:00
alembic.ini fix: Alembic CLI commands from failing 2025-08-15 04:17:47 -04:00
config.py refac 2026-07-27 19:39:36 -04:00
constants.py refac 2026-07-27 19:39:36 -04:00
env.py refac 2026-07-27 19:39:36 -04:00
events.py refac 2026-07-27 19:39:36 -04:00
functions.py refac 2026-07-23 03:39:56 -04:00
main.py refac 2026-07-27 19:39:36 -04:00
tasks.py refac 2026-07-26 22:45:11 -04:00