File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- from pydantic import BaseSettings
1+ from pydantic_settings import BaseSettings
22from typing import Union
33import re
44import logging
Original file line number Diff line number Diff line change 22from typing import Union
33import sqlite3 , re , ast
44from datetime import date
5- from pydantic import BaseSettings
5+ from pydantic_settings import BaseSettings
66
77class Settings (BaseSettings ):
88 importEHdb_thumb : bool = True
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ The basic structure of scanners is as follows
6464``` python
6565from pathlib import Path
6666from typing import Union
67- from pydantic import BaseSettings
67+ from pydantic_settings import BaseSettings
6868# some import and pre-process
6969# this may be executed multiple times, thus should avoid things like opening files
7070
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ ComicLib 的主体仅负责遍历漫画库,漫画文件的判断、解析等
6363``` python
6464from pathlib import Path
6565from typing import Union
66- from pydantic import BaseSettings
66+ from pydantic_settings import BaseSettings
6767# some import and pre-process
6868# this may be executed multiple times, thus should avoid things like opening files
6969
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ classifiers = [
1818]
1919dependencies = [
2020 " fastapi" ,
21+ ' pydantic-settings' ,
2122 ' sqlalchemy' ,
2223 ' python-multipart' ,
2324 ' pillow' ,
You can’t perform that action at this time.
0 commit comments