We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46b617e commit 4f1f708Copy full SHA for 4f1f708
src/fastapi_cli/config.py
@@ -19,10 +19,10 @@ def _read_pyproject_toml(cls) -> dict[str, Any]:
19
return {}
20
21
try:
22
- import tomllib # ty: ignore[unresolved-import]
+ import tomllib # type: ignore[import-not-found, unused-ignore] # ty: ignore[unresolved-import]
23
except ImportError:
24
25
- import tomli as tomllib # type: ignore[import-not-found, no-redef] # ty: ignore[unresolved-import]
+ import tomli as tomllib # type: ignore
26
except ImportError: # pragma: no cover
27
logger.debug("tomli not available, skipping pyproject.toml")
28
0 commit comments