Skip to content

Commit 2aa7a5a

Browse files
committed
refactor: change function name
1 parent 292713d commit 2aa7a5a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

aerich/_compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
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:

aerich/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from asyncclick import Context, UsageError
99

1010
from aerich import Command
11-
from aerich._compat import get_tomlkit, tomllib
11+
from aerich._compat import imports_tomlkit, tomllib
1212
from aerich.enums import Color
1313
from aerich.exceptions import DowngradeError
1414
from aerich.utils import add_src_path, get_tortoise_config
@@ -175,7 +175,7 @@ async def history(ctx: Context) -> None:
175175

176176

177177
def _write_config(config_path, doc, table) -> None:
178-
tomlkit = get_tomlkit()
178+
tomlkit = imports_tomlkit()
179179

180180
try:
181181
doc["tool"]["aerich"] = table

0 commit comments

Comments
 (0)