Skip to content

Commit 4f1f708

Browse files
committed
simplify
1 parent 46b617e commit 4f1f708

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fastapi_cli/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ def _read_pyproject_toml(cls) -> dict[str, Any]:
1919
return {}
2020

2121
try:
22-
import tomllib # ty: ignore[unresolved-import]
22+
import tomllib # type: ignore[import-not-found, unused-ignore] # ty: ignore[unresolved-import]
2323
except ImportError:
2424
try:
25-
import tomli as tomllib # type: ignore[import-not-found, no-redef] # ty: ignore[unresolved-import]
25+
import tomli as tomllib # type: ignore
2626
except ImportError: # pragma: no cover
2727
logger.debug("tomli not available, skipping pyproject.toml")
2828
return {}

0 commit comments

Comments
 (0)