[GH-ISSUE #7943] bug: sqlalchemy.engine.result.Result is not a generic class #14939

Closed
opened 2026-04-19 21:11:07 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @chtxia on GitHub (Dec 19, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/7943

C:\Users\xxx>pip -V
pip 22.0.4 from C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip (python 3.11)

C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\typing_extensions.py:2922 in │
│ _check_generic │
│ │
│ 2919 │ │ This gives a nice error message in case of count mismatch. │
│ 2920 │ │ """ │
│ 2921 │ │ if not elen: │
│ > 2922 │ │ │ raise TypeError(f"{cls} is not a generic class") │
│ 2923 │ │ alen = len(parameters) │
│ 2924 │ │ if alen != elen: │
│ 2925 │ │ │ expect_val = elen │
│ │
│ ┌─────── locals ───────┐ │
│ │ elen = 0 │ │
│ │ parameters = (~_TP,) │ │
│ └──────────────────────┘ │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
TypeError: <class 'sqlalchemy.engine.result.Result'> is not a generic class

for help

Originally created by @chtxia on GitHub (Dec 19, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/7943 C:\Users\xxx>pip -V pip 22.0.4 from C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip (python 3.11) C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\typing_extensions.py:2922 in │ │ _check_generic │ │ │ │ 2919 │ │ This gives a nice error message in case of count mismatch. │ │ 2920 │ │ """ │ │ 2921 │ │ if not elen: │ │ > 2922 │ │ │ raise TypeError(f"{cls} is not a generic class") │ │ 2923 │ │ alen = len(parameters) │ │ 2924 │ │ if alen != elen: │ │ 2925 │ │ │ expect_val = elen │ │ │ │ ┌─────── locals ───────┐ │ │ │ elen = 0 │ │ │ │ parameters = (~_TP,) │ │ │ └──────────────────────┘ │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ TypeError: <class 'sqlalchemy.engine.result.Result'> is not a generic class for help
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#14939