File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1515 import tomlkit as tomllib
1616
1717
18- def get_tomlkit () -> ModuleType :
18+ def imports_tomlkit () -> ModuleType :
1919 try :
2020 import tomli_w as tomlkit
2121 except ImportError :
Original file line number Diff line number Diff line change 88from asyncclick import Context , UsageError
99
1010from aerich import Command
11- from aerich ._compat import get_tomlkit , tomllib
11+ from aerich ._compat import imports_tomlkit , tomllib
1212from aerich .enums import Color
1313from aerich .exceptions import DowngradeError
1414from aerich .utils import add_src_path , get_tortoise_config
@@ -175,7 +175,7 @@ async def history(ctx: Context) -> None:
175175
176176
177177def _write_config (config_path , doc , table ) -> None :
178- tomlkit = get_tomlkit ()
178+ tomlkit = imports_tomlkit ()
179179
180180 try :
181181 doc ["tool" ]["aerich" ] = table
You can’t perform that action at this time.
0 commit comments