Skip to content

Commit 18a3e56

Browse files
fix: resolve mypy unused-ignore error for tomli import
- Remove inline type: ignore comment from config.py - Add tomli to mypy overrides for cross-version compatibility - Works on Python 3.10 (tomli installed) and 3.11+ (tomllib builtin) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 1c777c3 commit 18a3e56

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ module = [
121121
"fastmcp.*",
122122
"mcp",
123123
"mcp.*",
124+
"tomli",
125+
"tomli.*",
124126
]
125127
ignore_missing_imports = true
126128

src/agent_airlock/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
if sys.version_info >= (3, 11):
1818
import tomllib
1919
else:
20-
import tomli as tomllib # type: ignore[import-not-found]
20+
import tomli as tomllib
2121

2222

2323
@dataclass

0 commit comments

Comments
 (0)