Skip to content

Commit c09d769

Browse files
Clément VALENTINclaude
andcommitted
fix(api): add type annotation to fix mypy error in version.py
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 350971d commit c09d769

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/api/src/config/version.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ def get_version() -> str:
2323
if pyproject_path.exists():
2424
with open(pyproject_path, "rb") as f:
2525
data = tomllib.load(f)
26-
return data.get("project", {}).get("version", "unknown")
26+
version: str = data.get("project", {}).get("version", "unknown")
27+
return version
2728

2829
return "unknown"
2930
except Exception:

0 commit comments

Comments
 (0)